RetroAPI
RetroAPI 是一个面向 Minecraft Beta 1.7.3 的内容注册库,允许模组在无需依赖 StationAPI 的情况下添加方块、
物品、配方、实体、维度等更多内容。它运行于 Ornithe
(Fabric 加载器 + OSL)和 Babric 之上,并在安装了 StationAPI 时透明地将其委托给 StationAPI。
开发者门户
要开始使用它开发 b1.7.3,请访问此处!
实现功能
注册
- 自定义方块和物品,支持自动且稳定的 ID 分配——方块 ID 远超原版 256 的上限,且分配在多次加载间保持一致。
- 无需继承
BlockWithBlockEntity 的方块实体(RetroBlockEntityType)。
- 库存/菜单 GUI(箱子、熔炉和发射器样式),支持自动槽位同步(
@SyncField)。
- 合成、熔炼及熔炉燃料配方(
RetroRecipes)。
- 带渲染器的自定义实体,以及通过可进入的传送门方块到达的自定义维度。
- 成就及成就页面。
- 声音自动加载及语言/翻译自动生成。
渲染
- 扩展的纹理图集,以及自定义的方块和物品渲染器与渲染类型。
兼容原版的存档存储(旁侧系统)
- 所有模组内容均写入以字符串标识符为键的
retroapi/ 旁侧文件中,因此世界可以在原版中打开而不会崩溃或丢失数据,并可在 RetroAPI 中完好无损地重新打开。
- 涵盖扩展方块 ID、模组方块实体、原版容器内的模组物品以及掉落的物品实体。
多人游戏
- 基于 OSL 的网络通信,包含服务器到客户端的 ID 映射同步及扩展方块的区块同步。
StationAPI 兼容性(可选,捆绑提供)
- 附带一个
retroapi-stationapi 伴侣模块,仅当同时存在 StationAPI 时才加载,并将注册、渲染、维度及世界转换委托给 StationAPI。借助该模块,RetroAPI 的世界可通过 StationAPI 的扁平化世界格式往返传输而无数据丢失。
两个 jar 包均包含 StationAPI 兼容层;如果已安装 StationAPI,它会自动激活,否则保持静默。
RetroAPI
RetroAPI is a content-registration library for Minecraft Beta 1.7.3 that lets mods add blocks,
items, recipes, entities, dimensions and more without requiring StationAPI. It runs on Ornithe
(Fabric Loader + OSL) and Babric, and transparently delegates to StationAPI when that mod is
also installed.
Developer Portal
To start developing for b1.7.3 with it go here!
What it implements
Registration
- Custom blocks and items with automatic, stable ID assignment - block IDs are expanded well past the
vanilla 256 cap, and assignments persist across loads.
- Block entities without subclassing
BlockWithBlockEntity (RetroBlockEntityType).
- Inventory / menu GUIs (chest, furnace and dispenser styles) with automatic slot sync (
@SyncField).
- Crafting, smelting and furnace-fuel recipes (
RetroRecipes).
- Custom entities with renderers, and custom dimensions reached through walk-in portal blocks.
- Achievements and achievement pages.
- Sound autoloading and automatic lang / translation generation.
Rendering
- Expanded texture atlas plus custom block and item renderers and render types.
Vanilla-safe world storage (sidecar system)
- All modded content is written to
retroapi/ sidecar files keyed by string identifiers, so a world
can be opened in vanilla without crashing or losing data and reopened in RetroAPI intact.
- Covers extended block IDs, modded block entities, modded items inside vanilla containers, and
dropped item entities.
Multiplayer
- OSL-based networking with server-to-client ID mapping sync and extended-block chunk sync.
StationAPI compatibility (optional, bundled)
- Ships a
retroapi-stationapi companion that loads only when StationAPI is also present and
delegates registration, rendering, dimensions and world conversion to StationAPI. With it, RetroAPI
worlds round-trip through StationAPI's flattened world format without data loss.
Both jars include the StationAPI compatibility layer; it activates automatically if StationAPI is
installed and stays dormant otherwise.
评论 0
登录后参与评分
还没有评论,来抢沙发吧