2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 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
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/HumanEntity.java b/src/main/java/org/bukkit/entity/HumanEntity.java
|
2024-10-22 18:23:19 +02:00
|
|
|
index b9c19abe26c100558c4a0388d65c2316261ee1d3..36b48bfff60ecc3d49f9f6575a91dd6b73ecf1ab 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/org/bukkit/entity/HumanEntity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/HumanEntity.java
|
2024-08-09 22:05:50 +02:00
|
|
|
@@ -366,6 +366,15 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
|
2023-03-14 23:13:41 +01:00
|
|
|
void setHurtDirection(float hurtDirection);
|
|
|
|
// Paper end
|
2021-06-11 14:02:28 +02:00
|
|
|
|
|
|
|
+ // 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
|
|
|
|
+
|
|
|
|
/**
|
2024-10-22 18:23:19 +02:00
|
|
|
* Check whether a cooldown is active on the specified item.
|
2021-06-11 14:02:28 +02:00
|
|
|
*
|