Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
SandBlock.cs
浏览该文件的文档.
1namespace Game {
2 public class SandBlock : CubeBlock {
3 public static int Index = 7;
4
5 public SandBlock() {
7 IsCollapsable = true;
8 }
9
10 public override bool IsSuitableForPlants(int value, int plantValue) {
11 int plantContent = Terrain.ExtractContents(plantValue);
12 Block plantBlock = BlocksManager.Blocks[plantContent];
13 if (plantBlock is SaplingBlock or BasePumpkinBlock) {
14 return false;
15 }
16 return true;
17 }
18 }
19}
bool CanBeBuiltIntoFurniture
bool IsCollapsable
static int Index
override bool IsSuitableForPlants(int value, int plantValue)
static int ExtractContents(int value)