Asphodel API

模组

· 作者 Cassian

Cassian 的模组所使用的可复用逻辑、模组兼容性支持、多版本辅助工具及其他实用功能。

0 本站下载 0 关注 更新于 44 分钟前

需要前置:另一个配置库 (YACL)、Fabric API

最新 1.4.0+26.4-pre-3-fabric · Fabric

一键开服(送7天)

Asphodel API

Available for Fabric Available for NeoForge

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.

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.
Why? 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.

Asphodel API has already allowed:

  • Cross-version registration, data generation, and rendering utilities, making individual mod files more likely to work across versions and loaders and vastly removing the amount of code I'm copying between mods. Permanent Paintings is already using Asphodel API to work as a universal JAR for both loaders, and my Fabric port of Cultural Delights bundles Asphodel API as it simplifies porting mods away from Forge.
  • Automatic config screens for mods using Kaleido Config, including nearly all of my mods and quite a few others. While McQoy is still recommended as it has some additional features like support for maps, Asphodel API's implementation supports YACL, Cloth Config, and even a basic vanilla settings page in a single JAR, and is available for 26.2+
  • Unified accessory mod support for Immersive Overlays and Immersive Minimaps, even allowing the Fabric-only Immersive Minimaps to use Curios when paired with Connector, and allowing new integrations to benefit both mods.

Credits

Common tag classes are based on the implementation in Fabric API, used under Apache 2.0 License.

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源