Bukkit  1.7.9-R0.2-63-gcb87f4e
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.event.entity.EntityDamageEvent.DamageCause Enum Reference

An enum to specify the cause of the damage. More...

Public Attributes

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

Detailed Description

An enum to specify the cause of the damage.

Definition at line 273 of file EntityDamageEvent.java.

Member Data Documentation

org.bukkit.event.entity.EntityDamageEvent.DamageCause.BLOCK_EXPLOSION

Damage caused by being in the area when a block explodes.

Damage: variable

Definition at line 340 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.CONTACT

Damage caused when an entity contacts a block such as a Cactus.

Damage: 1 (Cactus)

Definition at line 280 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.CUSTOM

Custom damage.

Damage: variable

Definition at line 408 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.DROWNING

Damage caused by running out of air while in water.

Damage: 2

Definition at line 334 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.ENTITY_ATTACK

Damage caused when an entity attacks another entity.

Damage: variable

Definition at line 286 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.ENTITY_EXPLOSION

Damage caused by being in the area when an entity, such as a Creeper, explodes.

Damage: variable

Definition at line 347 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.FALL

Damage caused when an entity falls a distance greater than 3 blocks.

Damage: fall height - 3.0

Definition at line 304 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.FALLING_BLOCK

Damage caused by being hit by a falling block which deals damage.

Note: Not every block deals damage

Damage: variable

Definition at line 395 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.FIRE

Damage caused by direct exposure to fire.

Damage: 1

Definition at line 310 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.FIRE_TICK

Damage caused due to burns caused by fire.

Damage: 1

Definition at line 316 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.LAVA

Damage caused by direct exposure to lava.

Damage: 4

Definition at line 328 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.LIGHTNING

Damage caused by being struck by lightning.

Damage: 5

Definition at line 359 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.MAGIC

Damage caused by being hit by a damage potion or spell.

Damage: variable

Definition at line 383 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.MELTING

Damage caused due to a snowman melting.

Damage: 1

Definition at line 322 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.POISON

Damage caused due to an ongoing poison effect.

Damage: 1

Definition at line 377 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.PROJECTILE

Damage caused when attacked by a projectile.

Damage: variable

Definition at line 292 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.STARVATION

Damage caused by starving due to having an empty hunger bar.

Damage: 1

Definition at line 371 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.SUFFOCATION

Damage caused by being put in a block.

Damage: 1

Definition at line 298 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.SUICIDE

Damage caused by committing suicide using the command "/kill".

Damage: 1000

Definition at line 365 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.THORNS

Damage caused in retaliation to another attack by the Thorns enchantment.

Damage: 1-4 (Thorns)

Definition at line 402 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.VOID

Damage caused by falling into the void.

Damage: 4 for players

Definition at line 353 of file EntityDamageEvent.java.

org.bukkit.event.entity.EntityDamageEvent.DamageCause.WITHER

Damage caused by Wither potion effect.

Definition at line 387 of file EntityDamageEvent.java.


The documentation for this enum was generated from the following file: