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——因为它们是方块的物品形式。
相关条目
- TileRemoteInventory - 方块实体
- BlockIOCore - 基类
- ItemBlockRemoteInventory - 物品形式
- ContainerRemoteInventory - GUI 容器