Bukkit  1.6.4-R2.0
 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 95 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 162 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 102 of file EntityDamageEvent.java.

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

Custom damage.

Damage: variable

Definition at line 228 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 156 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 108 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 168 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 126 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 216 of file EntityDamageEvent.java.

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

Damage caused by direct exposure to fire.

Damage: 1

Definition at line 132 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 138 of file EntityDamageEvent.java.

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

Damage caused by direct exposure to lava.

Damage: 4

Definition at line 150 of file EntityDamageEvent.java.

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

Damage caused by being struck by lightning.

Damage: 5

Definition at line 180 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 204 of file EntityDamageEvent.java.

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

Damage caused due to a snowman melting.

Damage: 1

Definition at line 144 of file EntityDamageEvent.java.

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

Damage caused due to an ongoing poison effect.

Damage: 1

Definition at line 198 of file EntityDamageEvent.java.

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

Damage caused when attacked by a projectile.

Damage: variable

Definition at line 114 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 192 of file EntityDamageEvent.java.

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

Damage caused by being put in a block.

Damage: 1

Definition at line 120 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 186 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 222 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 174 of file EntityDamageEvent.java.

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

Damage caused by Wither potion effect.

Definition at line 208 of file EntityDamageEvent.java.


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