| 
									
										
										
										
											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
 | 
					
						
							| 
									
										
										
										
											2023-06-08 12:35:20 -07:00
										 |  |  | index 4054d2c836342f0e4bcbd33adb13f50daea5086a..ff1ebe184ba5a1bdc8e2784025b07d3bb90a5078 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
 | 
					
						
							| 
									
										
										
										
											2023-03-14 15:13:41 -07:00
										 |  |  | @@ -358,6 +358,15 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
 | 
					
						
							|  |  |  |      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
 | 
					
						
							|  |  |  | +
 | 
					
						
							|  |  |  |      /** | 
					
						
							|  |  |  |       * Get the sleep ticks of the player. This value may be capped. | 
					
						
							|  |  |  |       * |