Enum Class WarpWarmupCancelEvent.CancelReason
java.lang.Object
java.lang.Enum<WarpWarmupCancelEvent.CancelReason>
net.godlycow.org.essc.api.warp.event.WarpWarmupCancelEvent.CancelReason
- All Implemented Interfaces:
Serializable,Comparable<WarpWarmupCancelEvent.CancelReason>,Constable
- Enclosing class:
WarpWarmupCancelEvent
public static enum WarpWarmupCancelEvent.CancelReason
extends Enum<WarpWarmupCancelEvent.CancelReason>
Why a warmup was abandoned.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA listener cancelled the warmup start event.The player moved while cancel-on-move is enabled.The player went offline mid warmup. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static WarpWarmupCancelEvent.CancelReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER_OFFLINE
The player went offline mid warmup. -
PLAYER_MOVED
The player moved while cancel-on-move is enabled. -
EVENT_CANCELLED
A listener cancelled the warmup start event.
-
-
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
-