From 07082e80cad5e966d4ab6e209862e44f7258436f Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 7 Apr 2011 11:26:51 -0700 Subject: [PATCH] Added bed events and methods. By: sk89q --- .../bukkit/craftbukkit/entity/CraftHumanEntity.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index 7b37b3092e..011cf74817 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -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; + } }