Auto Config Updated API Mod — Reference
Core Mechanics
The mod operates on a "Data-First" philosophy. Instead of manually coding every button and slider in a GUI, developers define the variables they need (booleans, integers, strings, etc.) and the API handles the rest.
Key Features
- Annotation-Driven: Use simple tags like
@Configand@ConfigEntryto define behavior. - Automatic GUI Generation: Seamlessly creates Cloth Config screens without manual layout code.
- Multi-Format Support: Supports Jankson (JSON5), GSON (JSON), and TOML for configuration storage.
- Validation System: Includes hooks to correct or validate user input after the config is loaded.
- Partitioning: Ability to split large configuration files into multiple smaller files automatically.