Annotation Interface UnionConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfacestatic @interfacestatic @interfacestatic @interfaceDeprecated. -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanThis determines if the config file should have the type of the config appended to it.booleanShould the config entries reload their values when the config file is edited when the game is running?The name of the folder the files of this config will be within the config folder.
-
Element Details
-
name
String name- Returns:
- The name of the config file itself
-
translatableName
String translatableName- Returns:
- The translated name of the config. This shows up in menus
- Default:
""
-
entryTranslatablePrefix
String entryTranslatablePrefix- Returns:
- The prefix for each entries name to be translated
- Default:
""
-
folder
String folderThe name of the folder the files of this config will be within the config folder. If this is empty, it will just put the files in the config folder- Returns:
- The folder
- Default:
""
-
appendWithType
boolean appendWithTypeThis determines if the config file should have the type of the config appended to it. Client configs will have ".client.toml" attached to the name, Common configs will have ".common.toml" attached to the name, Server configs will have ".server.toml" attached to the name. If it is set to false, just ".toml" will be attached- Default:
true
-
autoReload
boolean autoReloadShould the config entries reload their values when the config file is edited when the game is running?- Default:
true
-