InventoryBlock
基本信息
| 属性 | 值 |
|---|---|
| 类名 | mantle.blocks.abstracts.InventoryBlock |
| 类型 | abstract class extends BlockContainer |
| 方法数 | 14 个 public |
| 启用版本 | 1.7.10 |
功能
带 TileEntity 库存的方块基类,Mantle 库存体系的核心抽象。
实现要点
- 实现
getTileEntity/onBlockActivated/ 掉落物处理等标准流程,逻辑委托给InventoryLogic。 - 覆写
registerBlockIcons(IIconRegister)(第 167 行)统一处理图标注册。 - Mantle 自身不注册任何它的实例;
InventorySlab是同包唯一子类。
相关条目
- InventoryLogic - 实际逻辑载体
- InventorySlab - 唯一子类
- ExpandableInventoryLogic - 可扩展库存逻辑
- AdaptiveInventoryLogic - 自适应库存逻辑