Annotation Interface UnionConfig


@Retention(RUNTIME) @Target(TYPE) public @interface UnionConfig
  • 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 folder
      The 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 appendWithType
      This 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 autoReload
      Should the config entries reload their values when the config file is edited when the game is running?
      Default:
      true