BlockRemoteInventory

基本信息

属性 值
类名 remoteio.common.block.BlockRemoteInventory
注册名 remote_inventory
TileEntity TileRemoteInventory
ItemBlock ItemBlockRemoteInventory

功能

跨距离打开的容器方块。安装位置芯片后,右键即可打开远处某个方块的背包, 而不需要走过去。是「远程 IO」最直观的体现。

实现要点

  • 继承 BlockIOCore。
  • 有 ItemBlock(ItemBlockRemoteInventory), 与 remote_interface 不同,玩家可获得方块物品。
  • 容器为 ContainerRemoteInventory。
  • 在 RemoteIO 的 checkMappings 中被显式特判: remote_interface 与 remote_inventory 两个名字走 Item.getItemFromBlock(...) 路径, 而非 findItem——因为它们是方块的物品形式。

相关条目