Copper Chest(铜箱子)
基本信息
| 属性 | 值 |
|---|---|
| 注册名 | IronChest:BlockIronChest @ metadata 3 |
| metadata 来源 | IronChestType.COPPER.ordinal() |
| 显示名 | tile.ironchest:COPPER.name = Copper Chest |
| 枚举常量 | COPPER |
| TileEntity | cpw.mods.ironchest.TileEntityCopperChest(extends TileEntityIronChest,唯一实现是 super(IronChestType.COPPER),15 行) |
| 硬度 | 3.0F |
| 爆炸抗性 | 否(resistance = 0) |
| 容量 | 45(size = 45)——全表最小的真实箱子 |
| 槽位形状 | 45 / 9 = 5 行 × 9 列 |
| 物品栏堆叠上限 | 64 |
| GUI 尺寸 | 184 × 184(GUIChest.GUI.COPPER),贴图 ironchest:textures/gui/coppercontainer.png |
| 箱子等级 | tier = 1(唯一 tier = 1 的真实箱子) |
| 材质 | ingotCopper |
| 物品过滤 | 无 |
| 是否配置可关 | 否(isEnabled() 恒 true) |
容量与等级倒挂
铜箱子是全枚举中唯一"等级越高容量越小"的档位:它 tier = 1 却只有 45 格,比 tier = 2 的 Iron Chest(54 格)还少 9 格。
按等级排序的完整容量阶梯(getAllSortedByTier() 的顺序):
| tier | 变体 | 容量 | 行 × 列 |
|---|---|---|---|
| 1 | Copper Chest | 45 | 5 × 9 |
| 2 | Iron Chest | 54 | 6 × 9 |
| 3 | Steel Chest / Silver Chest | 72 | 8 × 9 |
| 4 | Gold Chest | 81 | 9 × 9 |
| 5 | Diamond Chest / Crystal Chest / Obsidian Chest | 108 | 9 × 12 |
| 6 | Netherite Chest / Dark Steel Chest | 135 | 9 × 15 |
| -1 | Dirt Chest 9000 | 1 | 1 × 1(不参与升级链) |
[!NOTE]
tier = 3与tier = 5、tier = 6都是并列多档:同 tier 的箱子升级配方会每一种都注册一条,即 72 格可由钢或银两条路得到,108 格有钻石/水晶/黑曜石三条路。
配方
| 字段 | 值 | 实际生成的配方 |
|---|---|---|
recipeDirect |
null |
无 |
recipeUpgradeOneTier |
"mmmmPmmmm" → mmm/mPm/mmm |
8 个铜锭围 1 个原版木箱子(getRegistredChestsByTier(COPPER, 0, 0) 对 tier == 0 直接返回 new Object[]{"chestWood"}) |
recipeUpgradeTwoTiers |
"mGmGPGmGm" → mGm/GPG/mGm |
不生成:getRegistredChestsByTier(COPPER, -1, 0) 遇 tier < 0 直接返回空数组 |
配方中 'C' 键为 "chestWood",这个矿石字典名由 IronChest.load() 里的 OreDictionary.registerOre("chestWood", Blocks.chest) 注册。
同样地,recipeUpgradeOneTier 这条 mmm/msm/mmm 形态与升级器 Wood to Copper Chest Upgrade 的配方完全一致——两条获取路径等价。
升级关系
来源(谁变成铜箱子):
| 升级器 | 配方 | 说明 |
|---|---|---|
| Wood to Copper Chest Upgrade | mmm/msm/mmm |
8 铜锭围 1 原版木箱 |
| Copper to Iron Chest Upgrade | mGm/GsG/mGm |
铜箱 → 铁箱 |
去向(铜箱子变成谁):
| 升级器 | 目标 | 配方 |
|---|---|---|
| Copper to Iron Chest Upgrade | Iron Chest | mGm/GsG/mGm |
| Copper to Steel Chest Upgrade | Steel Chest | mmm/msm/mmm |
| Copper to Silver Chest Upgrade | Silver Chest | mmm/msm/mmm |
降级路径:Copper to Iron Chest Upgrade 让 45 格铜箱变成 54 格铁箱,是净增容量的。
存档兼容
IronChest.missingMapping(FMLMissingMappingEvent)在 STEEL.isEnabled() 时把旧名 IronChest:copperSilverUpgrade / silverGoldUpgrade 重映射到 copperSteelUpgrade / steelGoldUpgrade(BLOCK 与 ITEM 都重映射)。旧存档里的银箱子升级器因此不会消失,而是变成钢箱子的。
NBT 字段
与所有变体一致:Items(TAG_Compound 列表,每项含 Slot byte)、facing(byte)。TileEntityCopperChest 本身没有任何覆写,NBT 格式与基类逐字节相同。
渲染
图标 ironchest:copper_top / copper_front / copper_side;模型贴图 ironchest:textures/model/copperchest.png。不透明。
相关条目
- Iron Chest 方块 - metadata 与爆炸抗性机制
- ItemIronChest - 物品形态
- Steel Chest · Silver Chest - 铜箱子的两条同容量升级目标