Nether Leaves
基本信息
| 属性 | 值 |
|---|---|
| 注册名 | fether:nether_leaves |
| 硬度 | 0.2(继承 BlockLeaves) |
| 透明(远近) | isOpaqueCube = !Minecraft.isFancyGraphicsEnabled() |
| OreDict | treeLeaves |
功能
BlockNetherLeaves 覆写 isOpaqueCube/shouldSideBeRendered 以保证美术设定切换时不渲染额外的几何面,但本块仍是完整方块(不做光线追踪)。colorMultiplier / getRenderColor / getBlockColor 全部强制返回 0xFFFFFF,因此不去继承原版群系颜色。func_150125_e 返回 {"nether"} 占位字符串以兼容调用它的 mod。
registerBlockIcons 同时注册 blockIcon 与 blockIconOpaque(_opaque 后缀),用于快速图像模式下面块的隐藏面。
破坏时,getItemDropped 总是返回 blockNetherSapling 对应的 ItemBlock(无视 metadata),damageDropped = 0。这与原版需要苹果/树苗切换的逻辑不同——本 mod 让叶子 100% 出树苗。
摆放要求
- 自然生成(来自
WorldGenNetherTree)。 Ignis Fruit仅在canBlockStay之下挂在此块下方,所以是树果生长的承载块。
数值
| 数值 | 值 |
|---|---|
| 破坏掉落 | 1 × Nether Sapling(无视 meta) |
| 强制颜色 | 0xFFFFFF |
| 远景遮挡 | 仅在 “Fast Graphics” 下显示 _opaque 变体面 |
交互
| 触发 | 行为 |
|---|---|
| 破坏(任意工具) | 掉 1 × Nether Sapling |