| Class | Description |
|---|---|
| BetterConfigManager | |
| ConfigCopiedEvent |
Only fired for config classes annotated with
Sync.Fired on logical server side after copying config options from the local config class to the runtime config class. This happens when FMLServerAboutToStartEvent is fired and when changing a config using the ingame GUI while an integrated server is running. |
| ConfigMigrationHelper |
Utility methods to make config migration easier.
|
| ConfigSyncedEvent |
Only fired for config classes annotated with
Sync.Fired on logical client side after copying config options from a sync packet to the runtime config class. Sync packets are sent when PlayerEvent.PlayerLoggedInEvent is fired and when changing a config using the ingame GUI while an integrated server is running. |
| Enum | Description |
|---|---|
| BetterConfig.ConfigComparator |
| Annotation Type | Description |
|---|---|
| BetterConfig | |
| BetterConfig.AfterRead |
Callback annotation for config migration and post-read processing.
|
| LoadEarly |
Annotate your config class with this annotation to access it in your core mod.
|
| LoadEarly.Callback |
Normally,
ConfigChangedEvent.OnConfigChangedEvent is fired after the config is loaded initially, but when loading a config early, Forge's event bus isn't
available yet. |
| Order |
Annotate individual config settings with this annotation to provide an explicit ordering when using the
EXPLICIT
ordering in BetterConfig.elementOrder(). |
| RangeLong |
Long version of
Config.RangeInt. |
| Sync |
Annotate your config class with this annotation to automatically synchronize this config between server and client.
Internally BetterConfig creates a copy of the config class. |
| Unmodifiable |
Annotate a field whose type is some kind of array, collection, or map to make this config option unmodifiable through the ingame config GUI.
|