From 6a311ade3ae59138479905f5cdb9583aa08e41ca Mon Sep 17 00:00:00 2001 From: Jake Potrebic <jake.m.potrebic@gmail.com> Date: Thu, 8 Apr 2021 17:36:10 -0700 Subject: [PATCH] add isDeeplySleeping to HumanEntity --- .../org/bukkit/craftbukkit/entity/CraftHumanEntity.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index 42c41cd4b2..d5c4184e0d 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -132,6 +132,13 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity { } // Paper end + // Paper start + @Override + public boolean isDeeplySleeping() { + return getHandle().isSleepingLongEnough(); + } + // Paper end + @Override public int getSleepTicks() { return this.getHandle().sleepCounter;