summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit
diff options
context:
space:
mode:
authorsk89q <the.sk89q@gmail.com>2011-04-07 11:26:51 -0700
committersk89q <the.sk89q@gmail.com>2011-04-07 11:26:51 -0700
commit27d3396a35639e74ae49ccbcc0b546cb3a24ae73 (patch)
tree216ce4a655b159e6b6e7e03b8914a8ae62fd516e /src/main/java/org/bukkit
parente2480e1347e6d6dc3e9b906289f3cd9641b089b7 (diff)
downloadcraftbukkit-27d3396a35639e74ae49ccbcc0b546cb3a24ae73.tar
craftbukkit-27d3396a35639e74ae49ccbcc0b546cb3a24ae73.tar.gz
craftbukkit-27d3396a35639e74ae49ccbcc0b546cb3a24ae73.tar.lz
craftbukkit-27d3396a35639e74ae49ccbcc0b546cb3a24ae73.tar.xz
craftbukkit-27d3396a35639e74ae49ccbcc0b546cb3a24ae73.zip
Added bed events and methods.
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java
index 7b37b309..011cf748 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java
+++ b/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;
+ }
}