Enum Class ScenarioInstance.DeactivationReason
java.lang.Object
java.lang.Enum<ScenarioInstance.DeactivationReason>
dev.itsharshxd.zentrix.api.scenario.ScenarioInstance.DeactivationReason
- All Implemented Interfaces:
Serializable,Comparable<ScenarioInstance.DeactivationReason>,Constable
- Enclosing interface:
ScenarioInstance
public static enum ScenarioInstance.DeactivationReason
extends Enum<ScenarioInstance.DeactivationReason>
Why a scenario stopped running in a match.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe scenario was switched off while the match was running.The scenario failed repeatedly and was isolated.The match was cancelled before it started.The match finished normally.The providing plugin was disabled.The server is shutting down. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ScenarioInstance.DeactivationReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GAME_END
The match finished normally. -
GAME_CANCELLED
The match was cancelled before it started. -
DISABLED
The scenario was switched off while the match was running. -
PROVIDER_DISABLED
The providing plugin was disabled. -
FAILED
The scenario failed repeatedly and was isolated. -
SHUTDOWN
The server is shutting down.
-
-
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
-