Package net.mezzdev.config.api.schema
Enum Class ConfigSchemaType
- All Implemented Interfaces:
Serializable,Comparable<ConfigSchemaType>,Constable
Describes who owns a config schema and how its active values are selected.
- Since:
- 0.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClient-owned preferences that remain active across worlds and server connections.Client-owned preferences with a separate file for each singleplayer world or multiplayer server.Server-owned settings stored with the world, with effective values synchronized to connected clients. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigSchemaTypeReturns the enum constant of this class with the specified name.static ConfigSchemaType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLIENT
Client-owned preferences that remain active across worlds and server connections.- Since:
- 0.3.0
-
CLIENT_PER_WORLD
Client-owned preferences with a separate file for each singleplayer world or multiplayer server.- Since:
- 0.3.0
-
SERVER
Server-owned settings stored with the world, with effective values synchronized to connected clients.- Since:
- 0.3.0
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-