Package com.ohacd.matchbox.api.events
Enum Class PlayerEliminateEvent.EliminationReason
java.lang.Object
java.lang.Enum<PlayerEliminateEvent.EliminationReason>
com.ohacd.matchbox.api.events.PlayerEliminateEvent.EliminationReason
- All Implemented Interfaces:
Serializable,Comparable<PlayerEliminateEvent.EliminationReason>,Constable
- Enclosing class:
PlayerEliminateEvent
public static enum PlayerEliminateEvent.EliminationReason
extends Enum<PlayerEliminateEvent.EliminationReason>
Reasons why a player can be eliminated.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPlayer was disconnectedPlayer was killed by a SparkPlayer left the game voluntarilyOther reasonsPlayer was voted out during voting phase -
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
-
VOTED_OUT
Player was voted out during voting phase -
KILLED_BY_SPARK
Player was killed by a Spark -
LEFT_GAME
Player left the game voluntarily -
DISCONNECTED
Player was disconnected -
OTHER
Other reasons
-
-
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
-