[Bleeding] Added DamageCause.POISON/MAGIC and RegainReason.MAGIC/MAGIC_REGEN for potions
This commit is contained in:
parent
d384da1e7c
commit
418d18831c
@ -167,6 +167,18 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
|
|||||||
* Damage: 1
|
* Damage: 1
|
||||||
*/
|
*/
|
||||||
STARVATION,
|
STARVATION,
|
||||||
|
/**
|
||||||
|
* Damage caused due to an ongoing poison effect
|
||||||
|
*
|
||||||
|
* Damage: 1
|
||||||
|
*/
|
||||||
|
POISON,
|
||||||
|
/**
|
||||||
|
* Damage caused by being hit by a damage potion or spell
|
||||||
|
*
|
||||||
|
* Damage: variable
|
||||||
|
*/
|
||||||
|
MAGIC,
|
||||||
/**
|
/**
|
||||||
* Custom damage.
|
* Custom damage.
|
||||||
* <p />
|
* <p />
|
||||||
|
@ -83,6 +83,14 @@ public class EntityRegainHealthEvent extends EntityEvent implements Cancellable
|
|||||||
* When a player regains health from eating consumables
|
* When a player regains health from eating consumables
|
||||||
*/
|
*/
|
||||||
EATING,
|
EATING,
|
||||||
|
/**
|
||||||
|
* When a player is healed by a potion or spell
|
||||||
|
*/
|
||||||
|
MAGIC,
|
||||||
|
/**
|
||||||
|
* When a player is healed over time by a potion or spell
|
||||||
|
*/
|
||||||
|
MAGIC_REGEN,
|
||||||
/**
|
/**
|
||||||
* Any other reason not covered by the reasons above
|
* Any other reason not covered by the reasons above
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user