Enum EntityDamageEvent.DamageCause

java.lang.Object
java.lang.Enum<EntityDamageEvent.DamageCause>
org.bukkit.event.entity.EntityDamageEvent.DamageCause
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EntityDamageEvent.DamageCause>, java.lang.constant.Constable
Enclosing class:
EntityDamageEvent

public static enum EntityDamageEvent.DamageCause
extends java.lang.Enum<EntityDamageEvent.DamageCause>
An enum to specify the cause of the damage
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    BLOCK_EXPLOSION
    Damage caused by being in the area when a block explodes.
    CONTACT
    Damage caused when an entity contacts a block such as a Cactus.
    CUSTOM
    Custom damage.
    DROWNING
    Damage caused by running out of air while in water
    ENTITY_ATTACK
    Damage caused when an entity attacks another entity.
    ENTITY_EXPLOSION
    Damage caused by being in the area when an entity, such as a Creeper, explodes.
    FALL
    Damage caused when an entity falls a distance greater than 3 blocks
    FALLING_BLOCK
    Damage caused by being hit by a falling block which deals damage
    FIRE
    Damage caused by direct exposure to fire
    FIRE_TICK
    Damage caused due to burns caused by fire
    LAVA
    Damage caused by direct exposure to lava
    LIGHTNING
    Damage caused by being struck by lightning
    MAGIC
    Damage caused by being hit by a damage potion or spell
    MELTING
    Damage caused due to a snowman melting
    POISON
    Damage caused due to an ongoing poison effect
    PROJECTILE
    Damage caused when attacked by a projectile.
    STARVATION
    Damage caused by starving due to having an empty hunger bar
    SUFFOCATION
    Damage caused by being put in a block
    SUICIDE
    Damage caused by committing suicide using the command "/kill"
    THORNS
    Damage caused in retaliation to another attack by the Thorns enchantment.
    VOID
    Damage caused by falling into the void
    WITHER
    Damage caused by Wither potion effect
  • Method Summary

    Modifier and Type Method Description
    static EntityDamageEvent.DamageCause valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static EntityDamageEvent.DamageCause[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait