
UltraLib - Mod Developer's Library
UltraLib is a modern Java library that significantly simplifies the process of creating Minecraft mods. This tool is specifically designed for developers working with data-driven development and feature registration.
Key Advantages
The main advantage of UltraLib is its non-intrusive nature. The mod doesn't use mixins or other methods that could conflict with other modifications, ensuring maximum compatibility. Essentially, it's a convenient collection of Java classes that assist in development.
Main Library Components
OptionalObject - a tool for working with optional data from JSON files. Allows safe extraction of information that might be missing.
LatchedKeyBinding - a keybinding system that activates only on single press, preventing multiple triggers.
SortedList - a list with the ability to sort elements by weight, simplifying data organization.
UltraConfig - a lightweight configuration system with minimal resource requirements.
Data Loading Systems
The library offers three different approaches to JSON data loading:
- SimpleDataLoader - basic loader
- RunnableDataLoader - loader with task execution support
- DetachedRunnableDataLoader - standalone loader for parallel processing
Creator - Core Functionality
Creator represents an enhanced version of Function with registry support. This allows converting objects of one type to another using predefined identifiers. Perfect for implementing data-driven functionality in mods.