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;