mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
add isDeeplySleeping to HumanEntity
This commit is contained in:
parent
8cf2001602
commit
6a311ade3a
@ -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 New Issue
Block a user