mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Add DamageCause for FallingBlocks. Adds BUKKIT-2781
This commit is contained in:
parent
324436e99c
commit
e72fb666d8
1 changed files with 10 additions and 2 deletions
|
@ -166,13 +166,13 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
|
|||
STARVATION,
|
||||
/**
|
||||
* Damage caused due to an ongoing poison effect
|
||||
*
|
||||
* <p />
|
||||
* Damage: 1
|
||||
*/
|
||||
POISON,
|
||||
/**
|
||||
* Damage caused by being hit by a damage potion or spell
|
||||
*
|
||||
* <p />
|
||||
* Damage: variable
|
||||
*/
|
||||
MAGIC,
|
||||
|
@ -180,6 +180,14 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
|
|||
*
|
||||
*/
|
||||
WITHER,
|
||||
/**
|
||||
* Damage caused by being hit by a falling block which deals damage
|
||||
* <p />
|
||||
* <b>Note:</b> Not every block deals damage
|
||||
* <p />
|
||||
* Damage: variable
|
||||
*/
|
||||
FALLING_BLOCK,
|
||||
/**
|
||||
* Custom damage.
|
||||
* <p />
|
||||
|
|
Loading…
Add table
Reference in a new issue