Enum Class DeathmatchState
- All Implemented Interfaces:
Serializable,Comparable<DeathmatchState>,Constable
Where a match is with its deathmatch.
- Since:
- 1.8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe match is in its deathmatch.No deathmatch was requested yet, or the match is not running.The deathmatch arena is being prepared and players are about to be moved.A deathmatch was requested while No Deathmatch is active, so nothing was copied. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeathmatchStateReturns the enum constant of this class with the specified name.static DeathmatchState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_STARTED
No deathmatch was requested yet, or the match is not running. -
SUPPRESSED
A deathmatch was requested while No Deathmatch is active, so nothing was copied. It starts normally if that scenario is disabled or isolated during the match. -
PREPARING
The deathmatch arena is being prepared and players are about to be moved. -
ACTIVE
The match is in its deathmatch.
-
-
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
-