Enum Class SettingDescriptor.Type
- All Implemented Interfaces:
Serializable,Comparable<SettingDescriptor.Type>,Constable
- Enclosing class:
SettingDescriptor
The kind of value a setting holds, and the Java value
SettingsService.set(java.lang.String, java.lang.Object) expects.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionABoolean.A number within the bounds.A lowercase identifier.The name of a locale file.ALocation.A list ofLocations.A Bukkit material name.ALocation, or null to clear it.The name of a file inside the plugin folder.The name of a schematic file for the Cornucopia.A sound key.Free text, in Zentrix's colour format.The name of a world folder used as a template. -
Method Summary
Modifier and TypeMethodDescriptionstatic SettingDescriptor.TypeReturns the enum constant of this class with the specified name.static SettingDescriptor.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
ABoolean. -
INTEGER
-
DECIMAL
A number within the bounds. -
STRING
Free text, in Zentrix's colour format. -
IDENTIFIER
A lowercase identifier. -
SAFE_FILE
The name of a file inside the plugin folder. -
SCHEMATIC_FILE
The name of a schematic file for the Cornucopia. -
WORLD_TEMPLATE
The name of a world folder used as a template. -
LOCALE_FILE
The name of a locale file. -
MATERIAL
A Bukkit material name. -
SOUND
A sound key. -
ENUM
-
LOCATION
ALocation. -
LOCATION_LIST
A list ofLocations. -
NULLABLE_LOCATION
ALocation, or null to clear it.
-
-
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
-