Survivalcraft API 1.8.2.3
v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
EvergreenLeavesBlock.cs
浏览该文件的文档.
1
namespace
Game
{
2
public
abstract
class
EvergreenLeavesBlock
:
LeavesBlock
{
3
public
Random
m_random1
=
new
();
4
5
public
override
void
GetDropValues
(
SubsystemTerrain
subsystemTerrain,
6
int
oldValue,
7
int
newValue,
8
int
toolLevel,
9
List<BlockDropValue> dropValues,
10
out
bool
showDebris) {
11
if
(
m_random1
.Bool(0.25f)) {
12
dropValues.Add(
new
BlockDropValue
{ Value = 23, Count = 1 });
13
showDebris =
true
;
14
}
15
else
{
16
base.GetDropValues(subsystemTerrain, oldValue, newValue, toolLevel, dropValues, out showDebris);
17
}
18
}
19
20
public
override
IEnumerable<int>
GetCreativeValues
() {
21
yield
return
Terrain
.
MakeBlockValue
(
BlockIndex
);
22
}
23
}
24
}
Game.Block.BlockIndex
int BlockIndex
定义
Block.cs:6
Game.EvergreenLeavesBlock
定义
EvergreenLeavesBlock.cs:2
Game.EvergreenLeavesBlock.GetDropValues
override void GetDropValues(SubsystemTerrain subsystemTerrain, int oldValue, int newValue, int toolLevel, List< BlockDropValue > dropValues, out bool showDebris)
定义
EvergreenLeavesBlock.cs:5
Game.EvergreenLeavesBlock.GetCreativeValues
override IEnumerable< int > GetCreativeValues()
定义
EvergreenLeavesBlock.cs:20
Game.EvergreenLeavesBlock.m_random1
Random m_random1
定义
EvergreenLeavesBlock.cs:3
Game.LeavesBlock
定义
LeavesBlock.cs:5
Game.Random
定义
Random.cs:5
Game.SubsystemTerrain
定义
SubsystemTerrain.cs:6
Game.Terrain
定义
Terrain.cs:5
Game.Terrain.MakeBlockValue
static int MakeBlockValue(int contents)
定义
Terrain.cs:298
Game
定义
ContentFileBridge.cs:4
Game.BlockDropValue
定义
BlockDropValue.cs:4
SurvivalcraftApi 1.8.2.3
Survivalcraft.Windows
Block
EvergreenLeavesBlock.cs
制作者
1.16.1