mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 02:55:47 +01:00
1143b63663
* Add Position * move Position patch to start
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
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
|
|
index 7e23e157eb70e6bf94d0ac4a0196cc5c943dcac4..29885c7184dbec82a6de69c39878276392779d71 100644
|
|
--- a/src/main/java/org/bukkit/entity/HumanEntity.java
|
|
+++ b/src/main/java/org/bukkit/entity/HumanEntity.java
|
|
@@ -328,6 +328,15 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
|
|
*/
|
|
public void setCooldown(@NotNull Material material, int ticks);
|
|
|
|
+ // 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
|
|
+
|
|
/**
|
|
* Get the sleep ticks of the player. This value may be capped.
|
|
*
|