ItemBlockMulti
基本信息
| 属性 | 值 |
|---|---|
| 类名 | remoteio.common.item.block.ItemBlockMulti |
| 包 | item/block/ |
| 服务方块 | BlockMachine |
功能
多 meta ItemBlock。把一个方块的不同 metadata 映射为不同注册名,
使 BlockMachine 的 reservoir / heater 在物品栏中显示为两个不同物品。
实现要点
- 注册时由 ModBlocks 的四参
registerBlock传入子名数组new Object[] { new String[] { "reservoir", "heater" } }。 - 与 ItemSelectiveMeta 是同一模式的方块侧对应物。
- 另一套 ItemBlock ItemBlockRemoteInventory 不用本类 (单 meta,无需多态)。
相关条目
- BlockMachine - 服务方块
- ModBlocks - 注册位置
- ItemSelectiveMeta - 物品侧的对应实现