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.
下载 Asphodel API
下载 Asphodel API
下载 Asphodel API
下载 Asphodel API
下载 Asphodel API
变更
- Asphodel API 的客户端注册事件现在由 NeoForge 上的
RegisterEvent派发,修复了事件未派发的相关问题。
新增
- 客户端事件分发器,用于仅客户端的事件。
- 范围选择物品属性注册。
- 工具提示修改。
- 按键映射注册事件。
- 实体渲染器事件。
- 使用 Kaleido Config 的模组的自动配置界面。
- 在原版(1.21.1 及以上版本)中,提供基础配置界面。
- 安装 Cloth Config 后,提供使用该 API 的配置界面。
- 安装 YACL 后,提供使用该 API 的配置界面。
- YACL 是所有版本中的推荐首选选项,因为它提供了功能最丰富且易于访问的视图。
更改
- Kaleido Config 现已打包到 Asphodel API 中。
- 现在推荐使用 YACL。
- 模组现在声明了最低兼容的 Fabric API 和 NeoForge 版本。
- 延迟注册 API 现已在 1.20.1 构建中可用。
- 创意标签 API 中的各种方法现在接受
Collection类型参数。
新增
EventDispatcher类,其中包含对 Fabric 和 NeoForge 事件的通用且多版本兼容的解读。- 创造模式标签页放置事件。
- 配方同步事件。
- 对
SimpleParticleType和HeartType添加了传递性访问宽限器(access wideners)。
新增
- 支持 26.4-snapshot-8。
修复
- 1.20.1 Fabric 版本现可兼容 Java 17。
新增
- 延迟持有者现在可以接受回调,这些回调将在其值注册时执行。
新增
- 延迟持有者现在可以接受回调,这些回调将在其值注册时执行。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧