mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
add isDeeplySleeping to HumanEntity
This commit is contained in:
parent
8cf2001602
commit
6a311ade3a
1 changed files with 7 additions and 0 deletions
|
@ -132,6 +132,13 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
|||
}
|
||||
// Paper end
|
||||
|
||||
// Paper start
|
||||
@Override
|
||||
public boolean isDeeplySleeping() {
|
||||
return getHandle().isSleepingLongEnough();
|
||||
}
|
||||
// Paper end
|
||||
|
||||
@Override
|
||||
public int getSleepTicks() {
|
||||
return this.getHandle().sleepCounter;
|
||||
|
|
Loading…
Reference in a new issue