13
0
geforkt von Mirrors/Paper

[Bleeding] Added DamageCause.POISON/MAGIC and RegainReason.MAGIC/MAGIC_REGEN for potions

By: Zeerix <zeerix@draig.de>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2012-01-14 01:25:12 +01:00
Ursprung 4ad64ea3f5
Commit 52bcc1c28e
2 geänderte Dateien mit 20 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -167,6 +167,18 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
* Damage: 1
*/
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.
* <p />

Datei anzeigen

@ -83,6 +83,14 @@ public class EntityRegainHealthEvent extends EntityEvent implements Cancellable
* When a player regains health from eating consumables
*/
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
*/