Wiki 9Minecraft Auto Config Updated API Mod Wiki

Auto Config Updated API Mod — Configuration

Configuration Class Structure

A configuration class must implement ConfigData and be annotated with @Config. This class acts as the blueprint for both the file on disk and the in-game menu.

Basic Implementation Example

@Config(name = "example_mod")
class MyModConfig implements ConfigData {
 boolean enableFeatureA = true;
 int sliderValue = 50;

 @ConfigEntry.Gui.CollapsibleObject
 AdvancedSettings advanced = new AdvancedSettings;

 static class AdvancedSettings {
 String customName = "Default";
 float multiplier = 1.5f;
 }
}

Supported Data Types

By default, the GUI generator supports the following types: * Primitives: boolean, int, long, double, float. * Objects: String, Enum. * Nested Objects: Using the @CollapsibleObject or @TransitiveObject annotations.