Enum Class GameEndEvent.EndReason
java.lang.Object
java.lang.Enum<GameEndEvent.EndReason>
dev.itsharshxd.zentrix.api.events.game.GameEndEvent.EndReason
- All Implemented Interfaces:
Serializable,Comparable<GameEndEvent.EndReason>,Constable
- Enclosing class:
GameEndEvent
Represents the reason a game ended.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll players left the game before a winner could be determined.The game ended due to an error or unexpected condition.The game was forcibly ended by an administrator.The game ended because the plugin is being disabled.The game ended normally with a winner (last team/player standing). -
Method Summary
Modifier and TypeMethodDescriptionstatic GameEndEvent.EndReasonReturns the enum constant of this class with the specified name.static GameEndEvent.EndReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WINNER_DETERMINED
The game ended normally with a winner (last team/player standing). -
ALL_PLAYERS_LEFT
All players left the game before a winner could be determined. -
FORCE_ENDED
The game was forcibly ended by an administrator. -
PLUGIN_DISABLED
The game ended because the plugin is being disabled. -
ERROR
The game ended due to an error or unexpected condition.
-
-
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
-