Silver Chest(银箱子)

基本信息

属性 值
注册名 IronChest:BlockIronChest @ metadata 10
metadata 来源 IronChestType.SILVER.ordinal()(枚举里倒数第二个)
显示名 tile.ironchest:SILVER.name = Silver Chest
枚举常量 SILVER
TileEntity cpw.mods.ironchest.TileEntitySilverChest(唯一实现 super(IronChestType.SILVER))
硬度 3.0F
爆炸抗性 否(resistance = 0)
容量 72(size = 72)
槽位形状 72 / 9 = 8 行 × 9 列
物品栏堆叠上限 64
GUI 尺寸 184 × 238(GUIChest.GUI.SILVER),贴图 ironchest:textures/gui/silvercontainer.png
箱子等级 tier = 3(与钢箱子并列)
材质 ingotSilver
物品过滤 无
是否配置可关 是 — 配置项 enableSilverChests,默认 false

默认关闭

public static boolean ENABLE_SILVER_CHESTS = false;   // IronChest.java:48
...
ENABLE_SILVER_CHESTS = cfg.get(CATEGORY_GENERAL, "enableSilverChests", false,
        "Enables the silver chest.").getBoolean(false);

isEnabled()(IronChestType.java:121)对 SILVER 返回 ENABLE_SILVER_CHESTS。未开启时:

  • 不进入 registredChests(registerBlocksAndRecipes 里 if (typ.isEnabled()) 跳过),因此任何以银箱子为 P(前一级)的配方都不会注册;
  • 不进入创造模式物品栏(getSubBlocks 跳过);
  • 图标仍会被 registerBlockIcons 注册(makeIcons 只判 isValidForCreativeMode(),不判 isEnabled()),但没有物品可显示;
  • 依赖 SILVER.isEnabled() 的升级器 COPPERSILVER 与 IRONSILVER 不会被注册(ChestChangerType.buildItems 要求 source.isEnabled() && target.isEnabled())。

enableSilverChests 是四个 enable*Chests 开关里唯一一个默认值写死为 false 且不随 GTNH 变化的(enableDarkSteelChests 随 isGTNHLoaded,enableNetheriteChests 随 !isGTNHLoaded,enableSteelChests 恒 true)。

与 Steel Chest 的关系

容量 / 等级 / 抗爆 / GUI 尺寸 / 图标 / 模型贴图 / GUI 贴图全部与 Steel Chest 相同,唯一实质差异是材质(ingotSilver vs ingotSteel)、metadata(10 vs 4)、TileEntity 类与配置默认值。见 Steel Chest 条目中的逐项对照表。

配方

与 Steel Chest 对称(SILVER 是后加的枚举常量,字符串常量与 STEEL 一致):

字段 值 实际生成的配方
recipeDirect null 无
recipeUpgradeOneTier "mGmGPGmGm" → mGm/GPG/mGm 4 银锭(角)+ 4 玻璃(边)围 1 个 Iron Chest
recipeUpgradeTwoTiers "mmmmPmmmm" → mmm/mPm/mmm 8 银锭围 1 个 Copper Chest

升级关系

来源:

升级器 配方 源箱子
Iron to Silver Chest Upgrade mGm/GsG/mGm Iron Chest
Copper to Silver Chest Upgrade mmm/msm/mmm Copper Chest

去向:

升级器 目标 配方
Silver to Gold Chest Upgrade Gold Chest mGm/GsG/mGm

存档兼容(重点)

银箱子是这套升级器的历史遗留命名。IronChest.missingMapping 在 STEEL.isEnabled()(默认 true)时把旧存档引用重映射:

旧存档名 重映射到 类型
IronChest:copperSilverUpgrade copperSteelUpgrade BLOCK + ITEM
IronChest:silverGoldUpgrade steelGoldUpgrade BLOCK + ITEM

也就是说老世界里原本通往银箱子的两个升级器会被替换成钢箱子的。即便你打开 enableSilverChests,旧存档里也不会再出现"铜→银""银→金"的升级器物品。

NBT 字段

Items(TAG_Compound 列表,每项含 Slot byte)、facing(byte)。TileEntitySilverChest 无覆写。

渲染

事项 值
方块图标 ironchest:silver_top / silver_front / silver_side(自己的名字,无需特判)
模型贴图 ironchest:textures/model/silverchest.png(与钢箱子共用同一张)
GUI 贴图 ironchest:textures/gui/silvercontainer.png(与钢箱子共用)

相关条目