InventoryLogic
基本信息
| 属性 | 值 |
|---|---|
| 类名 | mantle.blocks.abstracts.InventoryLogic |
| 类型 | class extends TileEntity implements IInventory, IDebuggable |
| 方法数 | 24 个 public |
| 启用版本 | 1.7.10 |
功能
库存逻辑的基类:把 IInventory 的读写、升级、GUI 打开集中到一处。
实现要点
- 同时实现
IInventory与IDebuggable,是整个 Mantle 库存 API 的中心类型。 - 两个子类:
ExpandableInventoryLogic(可升级槽位)与AdaptiveInventoryLogic(按朝向调整)。
相关条目
- InventoryBlock - 使用本逻辑的方块基类
- ExpandableInventoryLogic - 20 方法的子类
- AdaptiveInventoryLogic - 实现
IFacingLogic的子类 - IDebuggable - 调试接口