1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-03-25 00:07:36 +01:00

add isDeeplySleeping to HumanEntity

This commit is contained in:
Jake Potrebic 2021-04-08 17:36:10 -07:00
parent 8cf2001602
commit 6a311ade3a

View file

@ -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;