Enum Class PlayerDeathEvent.Cause
- All Implemented Interfaces:
- Serializable,- Comparable<PlayerDeathEvent.Cause>,- Constable
- Enclosing class:
- PlayerDeathEvent
Determines why the 
PlayerDeathEvent was triggered exactly
 (i.e what killed this player).- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionPlayer bleeded outPlayer came in contact with lava or firePlayer died of dehydrationPlayer drownedPlayer fell to his deathPlayer was killed by an explosionAn npc killed this player.Another player killed this player.Player was killed by a trap (e.g spikes)An npc shot down this player.Another player shot down this player.Player died of starvationPlayer froze to deathUnknown reason...
- 
Method SummaryModifier and TypeMethodDescriptionstatic PlayerDeathEvent.CauseReturns the enum constant of this class with the specified name.static PlayerDeathEvent.Cause[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
UnknownUnknown reason...
- 
KilledByPlayerAnother player killed this player. In this case,PlayerDeathEvent.getKiller()returns the player
- 
ShotByPlayerAnother player shot down this player. In this case,PlayerDeathEvent.getKiller()returns the player
- 
KilledByNpcAn npc killed this player. In this case,PlayerDeathEvent.getKiller()returns the npc
- 
ShotByNpcAn npc shot down this player. In this case,PlayerDeathEvent.getKiller()returns the npc
- 
DrownedPlayer drowned
- 
BurnedPlayer came in contact with lava or fire
- 
KilledByExplosionPlayer was killed by an explosion
- 
FallDamagePlayer fell to his death
- 
BleededToDeathPlayer bleeded out
- 
StarvedPlayer died of starvation
- 
DehydratedPlayer died of dehydration
- 
TemperaturePlayer froze to death
- 
KilledByTrapPlayer was killed by a trap (e.g spikes)
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-