Added bed events and methods.

This commit is contained in:
sk89q
2011-04-07 11:26:51 -07:00
parent e2480e1347
commit 27d3396a35
2 changed files with 42 additions and 2 deletions

View File

@@ -47,4 +47,14 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
public String toString() {
return "CraftHumanEntity{" + "id=" + getEntityId() + "name=" + getName() + '}';
}
@Override
public boolean isSleeping() {
return getHandle().sleeping;
}
@Override
public int getSleepTicks() {
return getHandle().sleepTicks;
}
}