From 6c051c6e18a3eb4ff269255b54cd64b8ed59fe4c Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 22 Sep 2011 01:34:31 -0400 Subject: [PATCH] Added RegainReason.SATIATED. This reason is used when a player regains health from generating due to their hunger being satisfied. By: EvilSeph --- .../java/org/bukkit/event/entity/EntityRegainHealthEvent.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java index 30dfec0a69..1635240391 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java +++ b/paper-api/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 */