ExpandableInventoryLogic

基本信息

属性 值
类名 mantle.blocks.abstracts.ExpandableInventoryLogic
类型 class extends InventoryLogic implements IInventory
方法数 20 个 public
启用版本 1.7.10

功能

支持按条件增加槽位数的库存逻辑(如随等级扩容的机器)。

实现要点

  • 实现 IInventory 是为了取得原版槽位语义,槽位数由子类在运行时决定。
  • 20 个方法中大部分是槽位扩容 / 重建时的 NBT 与 GUI 同步。

相关条目