Enum Class CustomGameStateChangeEvent.CancelReason
java.lang.Object
java.lang.Enum<CustomGameStateChangeEvent.CancelReason>
dev.itsharshxd.zentrix.api.events.customgame.CustomGameStateChangeEvent.CancelReason
- All Implemented Interfaces:
Serializable,Comparable<CustomGameStateChangeEvent.CancelReason>,Constable
- Enclosing class:
CustomGameStateChangeEvent
public static enum CustomGameStateChangeEvent.CancelReason
extends Enum<CustomGameStateChangeEvent.CancelReason>
Why a custom game was called off.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn administrator called it off.Its match could not start.Custom games were disabled.Its host called it off.Nobody joined before its start time.Its worlds could not be prepared.An administrator ended its running match. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HOST
Its host called it off. -
ADMIN
An administrator called it off. -
TERMINATED
An administrator ended its running match. -
DISABLED
Custom games were disabled. -
NO_PLAYERS
Nobody joined before its start time. -
CANNOT_START
Its match could not start. -
PREPARATION_FAILED
Its worlds could not be prepared.
-
-
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
-