Package dev.twilite.client.config
Class Config
java.lang.Object
dev.twilite.client.config.Config
Base class for plugin configuration objects.
Config fields are rendered by the config UI when annotated with component annotations. Field initializers provide default values when no persisted value exists.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionroot()Returns the root config object when this config is nested.voidSets the root config object for nested config instances.voidsave()Saves the root config object that owns this config.booleanControls whether a config component identified bykeyshould be visible.
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
root
Returns the root config object when this config is nested. -
root
Sets the root config object for nested config instances. -
save
public void save()Saves the root config object that owns this config. -
shown
Controls whether a config component identified bykeyshould be visible.
-