Enum Class ConfigSchemaType

java.lang.Object
java.lang.Enum<ConfigSchemaType>
net.mezzdev.config.api.schema.ConfigSchemaType
All Implemented Interfaces:
Serializable, Comparable<ConfigSchemaType>, Constable

public enum ConfigSchemaType extends Enum<ConfigSchemaType>
Describes who owns a config schema and how its active values are selected.
Since:
0.3.0
  • Enum Constant Details

    • CLIENT

      public static final ConfigSchemaType CLIENT
      Client-owned preferences that remain active across worlds and server connections.
      Since:
      0.3.0
    • CLIENT_PER_WORLD

      public static final ConfigSchemaType CLIENT_PER_WORLD
      Client-owned preferences with a separate file for each singleplayer world or multiplayer server.
      Since:
      0.3.0
    • SERVER

      public static final ConfigSchemaType SERVER
      Server-owned settings stored with the world, with effective values synchronized to connected clients.
      Since:
      0.3.0
  • Method Details

    • values

      public static ConfigSchemaType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ConfigSchemaType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null