“谜题库”(Puzzles Lib)是我所有模组运行所需的核心库。你问它有什么作用?最重要的是,它为特定于模组加载器的代码提供了一系列抽象,这让我能非常轻松地同时在多个模组加载器上开发我所有的模组。
请注意,“谜题库”是专为我自己的需求设计的,并不打算供其他开发者使用。不过,欢迎其他开发者根据自身需求对我的实现进行调整。
▶️ 在通用项目中使用大多数 Forge 的 IModBusEvent 来设置你的模组。
▶️ 向《我的世界》的游戏注册表注册内容。
▶️ 只需使用 Java 的记录类型,即可在客户端与服务器之间自动序列化地发送消息。
▶️ 借助 Forge 的配置实现(在 Fabric 上由 Forge Config API Port 提供)创建基于注解的配置。
▶️ 使用 Forge 的能力系统以及 Fabric 上的 Cardinal Components,将自定义数据附加到实体、方块实体、区块和维度。
▶️ 直接在代码中加载时,对《我的世界》的生物群系进行大量修改。
⏩ 客户端和服务器均需安装
⏩ 需要安装 FABRIC API(Fabric)
⏩ 需要安装 FORGE CONFIG API PORT(Fabric)
Puzzles Lib is the core library that all my mods need to run. What does it do you ask? Most importantly it offers a bunch of abstractions for mod loader-specific code, which makes it very easy for me to develop all of my mods on multiple mod loaders simultaneously.
Note that Puzzles Lib is specifically designed for my own needs, it is not intended to be used by other developers. Other developers are welcome to adapt my implementations for their own needs though.
▶️ Use most of Forge's IModBusEvents in the common project for setting up your mod.
▶️ Register content to Minecraft's game registries.
▶️ Send messages between client & server with auto-serialization by simply using Java's record type.
▶️ Create annotation-based configs backed by Forge's config implementation (provided by Forge Config API Port on Fabric).
▶️ Attach custom data to entities, block entities, chunks and levels using Forge's capability system and Cardinal Components on Fabric.
▶️ Apply extensive changes to Minecraft's biomes on loading directly in-code.
⏩ INSTALLATION REQUIRED ON CLIENT & REQUIRED ON SERVER
⏩ REQUIRES FABRIC API TO BE INSTALLED (FABRIC)
⏩ REQUIRES FORGE CONFIG API PORT TO BE INSTALLED (FABRIC)
本站是资源分享站,资源均来自于互联网和用户自发分享,仅供学习和交流使用。如有版权问题,请联系管理员删除。
操作
创作者
待认领资源
成为此资源的创作者
其他链接
最近更新资源
阿卡迪亚的天启:天选之歌
热度 752 | 1 周前更新
机械动力:航空学 - All of Create - Aeronautics
热度 731 | 1 周前更新
天空开拓者:耕云纪元
热度 608 | 1 周前更新
更好的MC Better MC [FORGE] BMC4
热度 570 | 1 周前更新
剑痕纪元
热度 2109 | 1 周前更新
咒术回战(咒术战斗) - Jujutsu Kaisen (Sorcery Fight)
热度 3659 | 2 周前更新
机械动力:工业与牧歌 - Create: Industry and Pastoral
热度 4959 | 2 周前更新
虚饰作品-Fictional
热度 5003 | 3 周前更新
猎杀:历史 1949 - Hunt: History 1949
热度 2325 | 3 周前更新
更好的MC Better MC [NEOFORGE] BMC5
热度 2511 | 3 周前更新
ATM10:空岛 - All the Mods 10: To the Sky
热度 1126 | 3 周前更新
方块宝可梦x纪元(Cobblemon x Era)
热度 5837 | 3 周前更新
评论区 (0)
登录 后才能发表评论
快来发表第一条评论吧!