Shrub Leaves Block(灌木树叶)
基本信息
| 属性 | 值 |
|---|---|
| 注册名 | 未注册(不存在 extratrees:shrubLeaves) |
| TileEntity | 无(继承 BlockForestryLeaves) |
| 硬度 | 继承自 BlockForestryLeaves(本类未设置) |
| 爆炸抗性 | 继承自 BlockForestryLeaves(本类未设置) |
| 亮度 | 继承自 BlockForestryLeaves |
功能
BlockShrubLeaves(binnie/extratrees/block/BlockShrubLeaves.java:7)继承 Forestry 的 BlockForestryLeaves,构造函数为空(:9-11),唯一覆写是 beginLeavesDecay(...) 的空实现(:13-16,注释 // ignored, no able decay),即禁用树叶衰减。
⚠️ 已订正:原条目写注册名
extratrees:shrubLeaves。该注册名不存在。ExtraTrees.blockShrubLeaves = new BlockShrubLeaves()在extratrees/block/ModuleBlocks.java:45被实例化,但同一方法内没有对应的GameRegistry.registerBlock调用(:53-64共注册 planks / fence / multifence / log / gate / slab / doubleSlab / door / stairs 9 个,无 shrubLeaves)。ModuleBlocks是本 mod 唯一的 ExtraTrees 方块注册入口,因此该方块在游戏中无法被获得或放置。
实际用途
该 Block 实例仅被 binnie/extratrees/worldgen/BlockTypeLeaf.java:12 引用,作为 ExtraTrees 树叶生成器的「不衰减」叶型:
super(decay ? Mods.forestry.block("leaves") : ExtraTrees.blockShrubLeaves, 0);
即 decay == false 的叶型(灌木叶)使用本方块,decay == true 时改用 Forestry 的 forestry:leaves。但因为它没有注册名,生成器走到该分支时拿到的是一个未注册 Block——mod 自身缺陷。
数值
继承自 BlockForestryLeaves。本类源码中无 setHardness / setResistance / setLightLevel 调用。
交互
| 触发 | 行为 |
|---|---|
| 自然衰减 | 禁用(beginLeavesDecay 空实现) |
| 破坏 | 继承 BlockForestryLeaves 的掉落行为 |
所属多方块结构
无