Building Gadget Refined Storage Bridge
日文版请参阅 README_ja.md。
一个基于 Kotlin 开发的 NeoForge 1.21.1 模组。
新增了 refined_storage_bridge 方块。在 Building Gadgets 2 中将该方块指定为“绑定到存储”目标后,Building Gadget 即可从 Refined Storage 2 网络中插入和提取物品与流体。
前置要求
使用方法
- 构建一个 Refined Storage 2 网络,并将
refined_storage_bridge 方块连接到线缆上。
- 手持 Building Gadget,右键点击桥接方块以“绑定到存储”。
- 使用 Gadget 放置或交换方块时,物品将从 RS 网络中提取。
- 移除的方块将返还至 RS 网络。
检查状态
空手右键点击桥接方块可显示当前的连接状态。
| 显示内容 |
状态 |
| Connected(已连接) |
已成功连接到 RS 网络 |
| Disconnected(未连接) |
线缆断开或未找到网络 |
| Inactive(非活跃) |
网络电力不足 |
当电力中断或线缆被切断时,桥接方块会立即停止运行(故障安全关闭)。
库存布局的重建最多每 ~1 秒批量执行一次,即使在持续的网络更新期间也是如此。在此期间,实际的物品插入和提取功能仍正常工作,但物品数量和排序顺序在 GUI 中的反映可能会有轻微延迟。
限制
- 没有图形用户界面 (GUI)。
- 仅使用
ItemHandler.BLOCK 与 Building Gadgets 2 进行连接(不支持其他接口)。
- 通过官方 API 连接至 Refined Storage 2。运行时反射仅用于资源名称的显示转换。
- 未实现所有者限制和 RS 安全集成。
开发
安装
- 运行
./gradlew build。
- 将
build/libs/ 中生成的 jar 文件放入 Minecraft 的 mods/ 文件夹中。
build/libs/
├── refined_storage_bridge-<version>.jar ← 将此文件放入 mods/
└── refined_storage_bridge-<version>-sources.jar ← 源代码(可选)
Building Gadget Refined Storage Bridge
日本語版は README_ja.md を参照してください。
A Kotlin-based mod for NeoForge 1.21.1.
Adds the refined_storage_bridge block. By specifying this block as the bind to inventory target in Building Gadgets 2, the Building Gadget can insert and extract items and fluids from a Refined Storage 2 network.
Prerequisites
Usage
- Build a Refined Storage 2 network and connect the
refined_storage_bridge block to a cable.
- While holding a Building Gadget, right-click the bridge block to
bind to inventory.
- When placing or exchanging blocks with the Gadget, items will be pulled from the RS network.
- Removed blocks are returned to the RS network.
Checking Status
Right-clicking the bridge block with an empty hand shows the current connection state.
| Display |
State |
| Connected |
Successfully connected to the RS network |
| Disconnected |
The cable is disconnected or no network was found |
| Inactive |
The network does not have enough power |
When power stops or the cable is cut, the bridge immediately halts operation (fail-closed).
Inventory layout rebuilds are batched at most once per ~1 second, even during continuous network updates. Actual item insertion and extraction continue to work normally in the meantime, but there may be a slight delay before the item count and sort order are reflected in the GUI.
Limitations
- No GUI.
- Only
ItemHandler.BLOCK is used for the connection with Building Gadgets 2 (other interfaces are not supported).
- Connects to Refined Storage 2 via the official API. Runtime reflection is used only for display conversion of resource names.
- Owner restrictions and RS security integration are not implemented.
Development
Installation
- Run
./gradlew build.
- Place the generated jar from
build/libs/ into the Minecraft mods/ folder.
build/libs/
├── refined_storage_bridge-<version>.jar ← place this in mods/
└── refined_storage_bridge-<version>-sources.jar ← sources (optional)
评论 0
登录后参与评分
还没有评论,来抢沙发吧