Fallen Lib Mod 1.20.1

MOD

Fallen Lib is a developer utility library designed for mod development. It provides Application Binary Interface (ABI) related APIs and runtime utilities. This mod does not add any gameplay content and is not intended for normal players. It is currently used during the development of Fallen Gems & Affixes. The project has reached a usable state, though its APIs may still change as development continues.

Fallen Lib is a developer utility library designed for mod development. It provides Application Binary Interface (ABI) related APIs and runtime utilities. This mod does not add any gameplay content and is not intended for normal players. It is currently used during the development of Fallen Gems & Affixes. The project has reached a usable state, though its APIs may still change as development continues.

The library features a delegating API for patching mod classes, FallenPatch, which can hook exact classes or all subclasses to reduce repeated patches. It currently only supports patching mod classes. Along with FallenPatch, the @FallenInserter annotation can be used on methods with correct parameter and return types. Fallen Lib also includes runtime utilities like ObjectModifierFactory, which copies objects and modifies numeric fields using cache and field name filters, mainly for runtime adjustments. Additionally, a Delegated Mixin Connector Registry is available for conditionally loaded mixin configurations for testing in IDEA, requiring implementation of the official IMixinConnector class. Extra gem bonuses can also be registered for Apotheosis 1.20.1 using a datapack.