Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
DirtSlabBlock.cs
浏览该文件的文档.
1namespace Game {
2 public class DirtSlabBlock : SlabBlock {
3 public const int Index = 259;
4
5 public DirtSlabBlock() : base(2, 2) { }
6
7 public override int Paint(SubsystemTerrain terrain, int value, int? color) => value;
8
9 public override int? GetPaintColor(int value) => null;
10
11 public override IEnumerable<int> GetCreativeValues() {
12 yield return Terrain.MakeBlockValue(BlockIndex, 0, SetColor(0, null));
13 }
14 }
15}
int BlockIndex
定义 Block.cs:6
override? int GetPaintColor(int value)
override IEnumerable< int > GetCreativeValues()
override int Paint(SubsystemTerrain terrain, int value, int? color)
SlabBlock(int coloredTextureSlot, int fullBlockIndex)
static int SetColor(int data, int? color)
static int MakeBlockValue(int contents)