Skip to content

Asphodel API

Reuseable logic and mod compatibility, multiversioned helpers, and more utils for Cassian's mods.

3k downloads Updated

Last update on each platform

26.3 26.2

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

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.

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

  • Simplified block/item registration.
  • Universal interface for retrieving an object's Identifier.
  • A lightweight deferred registration implementation for easily porting mods away from Forge.
  • Multiversion-friendly block and item tag data generators.
  • Common code-friendly implementation of the common tags.
  • APIs for detecting items in containers and accessory mods, see Immersive Overlays and Immersive Minimaps.

Credits

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

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.

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.