Enum Class ScenarioSettingType
- All Implemented Interfaces:
Serializable,Comparable<ScenarioSettingType>,Constable
The value kinds a scenario setting can declare.
The type decides how a value is validated, how the management GUI edits it, and how it is
written back to scenarios.yml.
- Since:
- 1.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA toggle, edited by clicking.A fractional number bounded by the setting's minimum and maximum.One of the setting's allowed values, cycled by clicking.A whole number bounded by the setting's minimum and maximum.A single BukkitMaterialname.A list of BukkitMaterialnames.Free text, captured from chat.A list of free-text values, edited through chat.A list of entries whose fields the scenario declares itself, through aScenarioEntrySchema. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScenarioSettingTypeReturns the enum constant of this class with the specified name.static ScenarioSettingType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
A toggle, edited by clicking. -
INTEGER
A whole number bounded by the setting's minimum and maximum. -
DECIMAL
A fractional number bounded by the setting's minimum and maximum. -
STRING
Free text, captured from chat. -
ENUM
One of the setting's allowed values, cycled by clicking. -
STRING_LIST
A list of free-text values, edited through chat. -
MATERIAL
A single BukkitMaterialname. -
MATERIAL_LIST
A list of BukkitMaterialnames. -
STRUCTURED_LIST
A list of entries whose fields the scenario declares itself, through aScenarioEntrySchema.One field makes a plain list, two make a list of pairs, more make whatever the scenario needs. Zentrix validates every field against its declaration, edits entries in a dedicated management screen, writes them to
scenarios.ymlas a list of maps, and freezes them into a match's settings snapshot like any other value.- Since:
- 1.6.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
-