From f700e32e38033fee54f75d7f76914fa31e9d2953 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Thu, 22 Sep 2011 01:34:31 -0400 Subject: Added RegainReason.SATIATED. This reason is used when a player regains health from generating due to their hunger being satisfied. --- src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java b/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java index 30dfec0a..16352403 100644 --- a/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java @@ -63,6 +63,10 @@ public class EntityRegainHealthEvent extends EntityEvent implements Cancellable * When a player regains health from regenerating due to Peaceful mode (difficulty=0) */ REGEN, + /** + * When a player regains health from regenerating due to their hunger being satisfied + */ + SATIATED, /** * When a player regains health from eating consumables */ -- cgit v1.2.3