Enum Class PlayerDeathGameEvent.DeathCause
java.lang.Object
java.lang.Enum<PlayerDeathGameEvent.DeathCause>
dev.itsharshxd.zentrix.api.events.player.PlayerDeathGameEvent.DeathCause
- All Implemented Interfaces:
Serializable,Comparable<PlayerDeathGameEvent.DeathCause>,Constable
- Enclosing class:
PlayerDeathGameEvent
Represents the cause of a player's death.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionKilled by the world border.Killed by drowning.Killed by an explosion.Killed by fall damage.Killed by fire or lava.Killed by a mob.Any other cause of death.Killed by another player.Killed by starvation.Killed by suffocation.Killed by void damage. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static PlayerDeathGameEvent.DeathCause[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER
Killed by another player. -
BORDER
Killed by the world border. -
FALL
Killed by fall damage. -
FIRE
Killed by fire or lava. -
DROWNING
Killed by drowning. -
EXPLOSION
Killed by an explosion. -
MOB
Killed by a mob. -
STARVATION
Killed by starvation. -
SUFFOCATION
Killed by suffocation. -
VOID
Killed by void damage. -
OTHER
Any other cause of death.
-
-
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
-