From c0e2f67d7c0041a29a3b06f5686290566410093b Mon Sep 17 00:00:00 2001 From: Jake Potrebic <jake.m.potrebic@gmail.com> Date: Thu, 8 Apr 2021 17:36:15 -0700 Subject: [PATCH] add isDeeplySleeping to HumanEntity --- .../src/main/java/org/bukkit/entity/HumanEntity.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java b/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java index 551b2a8574..10576d39e0 100644 --- a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java @@ -366,6 +366,15 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder void setHurtDirection(float hurtDirection); // Paper end + // Paper start + /** + * If the player has slept enough to count towards passing the night. + * + * @return true if the player has slept enough + */ + public boolean isDeeplySleeping(); + // Paper end + /** * Check whether a cooldown is active on the specified item. *