Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
FramedGlassBlock.cs
浏览该文件的文档.
1namespace Game {
3 public static int Index = 44;
4 public bool IsCollapseSupportBlock_ = false;
5
6 public override bool ShouldGenerateFace(SubsystemTerrain subsystemTerrain,
7 int face,
8 int value,
9 int neighborValue,
10 int x,
11 int y,
12 int z) {
13 if (Terrain.ExtractContents(neighborValue) == BlockIndex) {
14 return false;
15 }
16 return base.ShouldGenerateFace(
17 subsystemTerrain,
18 face,
19 value,
20 neighborValue,
21 x,
22 y,
23 z
24 );
25 }
26
27 public override bool IsNonAttachable(int value) => false;
28
29 public override bool IsCollapseSupportBlock(SubsystemTerrain subsystemTerrain, int value) => IsCollapseSupportBlock_;
30 }
31}
int BlockIndex
定义 Block.cs:6
override bool IsCollapseSupportBlock(SubsystemTerrain subsystemTerrain, int value)
override bool IsNonAttachable(int value)
override bool ShouldGenerateFace(SubsystemTerrain subsystemTerrain, int face, int value, int neighborValue, int x, int y, int z)
static int ExtractContents(int value)