Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.entity.EntityDamageEvent.DamageCause Enum Reference

Public Attributes

 CONTACT
 
 ENTITY_ATTACK
 
 PROJECTILE
 
 SUFFOCATION
 
 FALL
 
 FIRE
 
 FIRE_TICK
 
 MELTING
 
 LAVA
 
 DROWNING
 
 BLOCK_EXPLOSION
 
 ENTITY_EXPLOSION
 
 VOID
 
 LIGHTNING
 
 SUICIDE
 
 STARVATION
 
 POISON
 
 MAGIC
 
 WITHER
 
 FALLING_BLOCK
 
 THORNS
 
 CUSTOM
 

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 230 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 169 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 217 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 181 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 205 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 199 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 193 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 187 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 224 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 175 of file EntityDamageEvent.java.

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

Damage caused by Wither potion effect

Definition at line 209 of file EntityDamageEvent.java.


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