Enum Class EndChangeCause
- All Implemented Interfaces:
Serializable,Comparable<EndChangeCause>,Constable
Represents the reason why the End is being opened or closed.
Used in EndStateChangeEvent and EndManager
and other End-related places to provide context to listeners.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic EndChangeCauseReturns the enum constant of this class with the specified name.static EndChangeCause[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMAND
The End is being opened or closed due to a player or admin command. -
PLUGIN
The End is being opened or closed programmatically by another plugin. -
OTHER
The End is being opened or closed for any other reason not covered by COMMAND or PLUGIN.
-
-
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
-