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-stationapicompanion 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.
下载 RetroAPI
下载 RetroAPI
下载 RetroAPI
下载 RetroAPI
下载 RetroAPI
下载 RetroAPI
下载 RetroAPI
下载 RetroAPI
下载 RetroAPI
下载 RetroAPI
StationAPI 模组现在将享有与 RetroAPI 模组相同的自动处理。
创意标签页
- 自动生成的标签页现在包含通过 StationAPI 注册的模组,而不仅仅是 RetroAPI 模组。一个从未接触过 RetroAPI 的模组会获得以其自身名称命名的标签页。
- 刷怪蛋不再重复添加到所属模组的标签页中,因为它们已经存在于“刷怪蛋”标签页里。其他模组的刷怪蛋则保留在原位不动。
刷怪蛋
- 自动生成刷怪蛋的功能现在也支持 StationAPI。扫描程序读取原版 Minecraft 的 EntityRegistry(两种工具链都会填充该注册表),仅针对活体实体。
- 备用刷怪蛋的颜色会根据生物渲染纹理的饱和度加权平均值进行着色,以便在任何人绘制自定义贴图之前就能区分不同生物的刷怪蛋。若要替换默认刷怪蛋,请将精灵贴图放置在 assets/<mod>/textures/item/<mob>_spawn_egg.png。
无需依赖即可选择不加入
- com.periut.retroapi.compat.RetroOptional 仅接受字符串参数,因此模组可以通过反射调用 excludeItemGroup、excludeSpawnEggs 和 excludeSpawnEgg 方法,而无需对 RetroAPI 产生硬性依赖。
- templates/RetroCompat.java.txt 是一个辅助类副本,它封装了模组检查逻辑和反射调用,并在 RetroAPI 不存在时不执行任何操作。
修复内容
- 握手长度扩展器现在使用 ModifyArg 而非 ModifyConstant。由于每个常量只能被一个注入点声明,RetroTweaks 和 Glass Networking 之前会争夺该常量,导致失败的一方在启动时崩溃。现在两者均可正常应用。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧