箱子三档(Marginally Maximised / Significantly Shrunk / Radically Reduced)
基本信息
| 属性 | 值 |
|---|---|
| 注册名 | utilitiesinexcess:marginally_maximised_chest / significantly_shrunk_chest / radically_reduced_chest |
| 类层次 | BlockSignificantlyShrunkChest extends BlockMarginallyMaximisedChest;BlockRadicallyReducedChest extends BlockSignificantlyShrunkChest |
| 父类 | 三者最终都继承 BlockContainer |
| 注册方块数 | 3 |
| TileEntity | 三个独立类,同样构成继承链 |
功能
这是本模组中唯一一条方块继承链——三档箱子通过 Java 继承逐级派生,而不是复制代码。槽位数从"略微扩大"到"极度缩小"递减,恰好是 Extra Utilities 的经典三档箱子。
由于 BlockRadicallyReducedChest 继承 BlockSignificantlyShrunkChest 而后者继承 BlockMarginallyMaximisedChest,关闭上游开关不会自动关闭下游方块——三者各自有独立开关。
数值
| 注册名 | 枚举常量 | 类 | TileEntity | 开关 |
|---|---|---|---|---|
marginally_maximised_chest |
MARGINALLY_MAXIMISED_CHEST |
BlockMarginallyMaximisedChest |
TileEntityMarginallyMaximisedChest(注册名 TileEntityMarginallyMaximisedChestUIE) |
BlockConfig.enableMarginallyMaximisedChest |
significantly_shrunk_chest |
SIGNIFICANTLY_SHRUNK_CHEST |
BlockSignificantlyShrunkChest |
TileEntitySignificantlyShrunkChest |
BlockConfig.enableSignificantlyShrunkChest |
radically_reduced_chest |
RADICALLY_REDUCED_CHEST |
BlockRadicallyReducedChest |
TileEntityRadicallyReducedChest |
BlockConfig.enableRadicallyReducedChest |
来源:ModBlocks.java:114-116;TileEntity 注册见 ModTileEntities.java:58-60(枚举名 CHEST_MAX / CHEST_SHRUNK / CHEST_SMALL)。三个开关全部默认 true(BlockConfig.java:257-267)。
各档的具体槽位数无法从本条目核实:本条目未逐一抄录三个 TileEntityMarginallyMaximisedChest / SignificantlyShrunk / RadicallyReduced 类的 getSizeInventory()。可确认的一点是配方差异——significantly_shrunk_chest 配方产出 9 个(new DisableableItemStack(ModBlocks.SIGNIFICANTLY_SHRUNK_CHEST, 9),RecipeLoader.java:472),radically_reduced_chest 同样产出 9 个(RecipeLoader.java:480)。
交互
| 触发 | 行为 |
|---|---|
| 右键 | 打开箱子 GUI(沿用 BlockContainer 默认 GUI 行为) |
| 破坏 | 掉落内部物品 |
合成配方
| 产物 | 配方 | 开关 |
|---|---|---|
marginally_maximised_chest ×1 |
sss / scs / sss:s=木棍、c=箱子 |
RecipeConfig.enableMarginallyMaximisedChestRecipe |
significantly_shrunk_chest ×9 |
无序:1 个箱子 | RecipeConfig.enableSignificantlyShrunkChestRecipe |
significantly_shrunk_chest ×9 |
无序:1 个 marginally_maximised_chest | 同上 |
radically_reduced_chest ×9 |
无序:1 个 significantly_shrunk_chest | RecipeConfig.enableRadicallyReducedChestRecipe |
来源:RecipeLoader.java:459-481。三个开关默认全为 true。
相关条目
- 文件柜 - 本模组另一套大容量存储方案
- TileEntity 注册总表 - 三个箱子 TileEntity
- 方块注册总表 - 三个箱子在完整表中的位置
- 配方总览 - 箱子合成