@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Config
ConfigRegistry.registerConfig(Object)
The config could be initialized at any three init stages-depending on when you register your configModifier and Type | Optional Element and Description |
---|---|
boolean |
doesSync
Whether configs should be synced between server to client.
|
java.lang.String[] |
exclude
Used to get a list of fields that you want ignored
|
java.lang.String |
fileName
If preferred, the custom file name, otherwise it uses the class name
|
java.lang.String |
handler
Class for a custom config handler, it must implement
IConfigurationHandler |
public abstract java.lang.String fileName
public abstract java.lang.String[] exclude
public abstract java.lang.String handler
IConfigurationHandler
public abstract boolean doesSync
ConfigLoadEvent
,
cancelling ConfigLoadEvent.Pre
will prevent syncing