mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-31 20:51:47 +01:00
Add DamageCause for FallingBlocks. Adds BUKKIT-2781
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
parent
4e75dc1efc
commit
6cebaa530c
@ -166,13 +166,13 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
|
|||||||
STARVATION,
|
STARVATION,
|
||||||
/**
|
/**
|
||||||
* Damage caused due to an ongoing poison effect
|
* Damage caused due to an ongoing poison effect
|
||||||
*
|
* <p />
|
||||||
* Damage: 1
|
* Damage: 1
|
||||||
*/
|
*/
|
||||||
POISON,
|
POISON,
|
||||||
/**
|
/**
|
||||||
* Damage caused by being hit by a damage potion or spell
|
* Damage caused by being hit by a damage potion or spell
|
||||||
*
|
* <p />
|
||||||
* Damage: variable
|
* Damage: variable
|
||||||
*/
|
*/
|
||||||
MAGIC,
|
MAGIC,
|
||||||
@ -180,6 +180,14 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
WITHER,
|
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.
|
* Custom damage.
|
||||||
* <p />
|
* <p />
|
||||||
|
Loading…
Reference in New Issue
Block a user