mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-14 13:43:55 +01:00
add isDeeplySleeping to HumanEntity
This commit is contained in:
parent
f4eab2ee51
commit
c0e2f67d7c
1 changed files with 9 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue