|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<EntityDamageEvent.DamageCause> org.bukkit.event.entity.EntityDamageEvent.DamageCause
public static enum EntityDamageEvent.DamageCause
An enum to specify the cause of the damage
Enum Constant Summary | |
---|---|
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 Damage: 2 |
|
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 Damage: fall height - 3.0 |
|
FALLING_BLOCK
Damage caused by being hit by a falling block which deals damage Note: Not every block deals damage Damage: variable |
|
FIRE
Damage caused by direct exposure to fire Damage: 1 |
|
FIRE_TICK
Damage caused due to burns caused by fire Damage: 1 |
|
LAVA
Damage caused by direct exposure to lava Damage: 4 |
|
LIGHTNING
Damage caused by being struck by lightning Damage: 5 |
|
MAGIC
Damage caused by being hit by a damage potion or spell Damage: variable |
|
MELTING
Damage caused due to a snowman melting Damage: 1 |
|
POISON
Damage caused due to an ongoing poison effect Damage: 1 |
|
PROJECTILE
Damage caused when attacked by a projectile. |
|
STARVATION
Damage caused by starving due to having an empty hunger bar Damage: 1 |
|
SUFFOCATION
Damage caused by being put in a block Damage: 1 |
|
SUICIDE
Damage caused by committing suicide using the command "/kill" Damage: 1000 |
|
VOID
Damage caused by falling into the void Damage: 4 for players |
|
WITHER
|
Method Summary | |
---|---|
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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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 MELTING
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 LIGHTNING
public static final EntityDamageEvent.DamageCause SUICIDE
public static final EntityDamageEvent.DamageCause STARVATION
public static final EntityDamageEvent.DamageCause POISON
public static final EntityDamageEvent.DamageCause MAGIC
public static final EntityDamageEvent.DamageCause WITHER
public static final EntityDamageEvent.DamageCause FALLING_BLOCK
public static final EntityDamageEvent.DamageCause CUSTOM
Method Detail |
---|
public static final 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 name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |