public static enum EntityDamageEvent.DamageCause extends Enum<EntityDamageEvent.DamageCause>
| Enum Constant and Description |
|---|
BLOCK_EXPLOSION
Block explosion damage
|
CONTACT
Damage caused by contact with a block such as a Cactus
|
CUSTOM
Plugins
|
DROWNING
Damage caused by running out of air underwater
|
ENTITY_ATTACK
Damage caused by being attacked by another entity
|
ENTITY_EXPLOSION
Entity explosion damage
|
FALL
Fall damage
|
FIRE
Damage caused by standing in fire
|
FIRE_TICK
Burn damage
|
HUNGER
Damage caused by hunger
|
LAVA
Damage caused by standing in lava
|
LIGHTNING
Damage caused by being struck by lightning
|
MAGIC
Potion or spell damage
|
PROJECTILE
Damage caused by being hit by a projectile such as an Arrow
|
SUFFOCATION
Damage caused by being put in a block
|
SUICIDE
Player commits suicide
|
VOID
Damage caused by falling into the void
|
| Modifier and Type | Method and Description |
|---|---|
static EntityDamageEvent.DamageCause |
valueOf(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.
|
public static final EntityDamageEvent.DamageCause CONTACT
public static final EntityDamageEvent.DamageCause ENTITY_ATTACK
public static final EntityDamageEvent.DamageCause PROJECTILE
public static final EntityDamageEvent.DamageCause SUFFOCATION
public static final EntityDamageEvent.DamageCause FALL
public static final EntityDamageEvent.DamageCause FIRE
public static final EntityDamageEvent.DamageCause FIRE_TICK
public static final EntityDamageEvent.DamageCause LAVA
public static final EntityDamageEvent.DamageCause DROWNING
public static final EntityDamageEvent.DamageCause BLOCK_EXPLOSION
public static final EntityDamageEvent.DamageCause ENTITY_EXPLOSION
public static final EntityDamageEvent.DamageCause VOID
public static final EntityDamageEvent.DamageCause SUICIDE
public static final EntityDamageEvent.DamageCause MAGIC
public static final EntityDamageEvent.DamageCause CUSTOM
public static final EntityDamageEvent.DamageCause LIGHTNING
public static final EntityDamageEvent.DamageCause HUNGER
public static EntityDamageEvent.DamageCause[] values()
for (EntityDamageEvent.DamageCause c : EntityDamageEvent.DamageCause.values()) System.out.println(c);
public static EntityDamageEvent.DamageCause valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020. All rights reserved.