Asphodel API

Asphodel API 是由 Cassian 设计的一个多加载器/多版本 API,旨在简化其模组的长期维护。
Asphodel API 本身不包含任何内容。仅在您拥有依赖此 API 的模组时才应安装它,包括以下任意模组。
是的,这是另一个以模组作者名字命名的库。目前我开发了超过 50 个模组,分布在多个版本中,而我贡献代码的每个库都会停止维护我所需的版本,或者不提供快照版支持。发布一个公开版本允许我使用通用 JAR 文件的模组依赖 Asphodel API,而不必不必要地上传两个内容完全相同的 JAR 文件,同时也允许用户直接更新该模组。
功能
- 自动为使用 Kaleido Config 的模组生成配置界面,可选地使用 YACL 或 Cloth Config 来提供外观更美观且功能更丰富的界面。
- 注册工具。
- 用于方块/物品注册的通用入口点。
- 或者,一种轻量级的延迟注册实现,便于轻松将模组从 Forge 移植过来。
- 用于获取对象
Identifier 的通用接口。
- 对多版本友好的方块和物品标签数据生成器。
- 适用于 Fabric/NeoForge 常规标签的通用代码友好实现。
- 事件分发系统,用于安全地分发多加载器/多版本事件。
致谢
常规标签类基于 Fabric API 中的实现,在 Apache 2.0 许可下使用。
Asphodel API

Asphodel API is a multiloader/multiversion API designed by Cassian to simplify long-term maintenance of their mods.
Asphodel API does not contain any content on its own. It should only be installed if you have a mod that depends on it, including any of these mods.
Yes, this is another moddername library. I work on over 50 mods at this point spread across a variety of versions, and every library I contribute code to keeps discontinuing versions I have to maintain or isn't available for snapshots. Having a published version allows for my mods that use universal JARs to depend on Asphodel API rather than have to unnecessarily upload two JARs with otherwise identical content, and allows users to update the mod directly.
Features
- Automatic config screens for mods using Kaleido Config, optionally using YACL or Cloth Config for nicer looking screens with larger feature sets.
- Registration utilities.
- Universal entrypoints for block/item registration.
- Alternatively, a lightweight deferred registration implementation for easily porting mods away from Forge.
- Universal interface for retrieving an object's
Identifier.
- Multiversion-friendly block and item tag data generators.
- Common code-friendly implementation of the Fabric/NeoForge conventional tags.
- Event dispatcher system for safely dispatching multiloader/multiversioned events.
Credits
Common tag classes are based on the implementation in Fabric API, used under Apache 2.0 License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧