diff options
author | Wesley Wolfe <wesley.d.wolfe+git@gmail.com> | 2014-05-13 20:38:42 -0500 |
---|---|---|
committer | Wesley Wolfe <wesley.d.wolfe+git@gmail.com> | 2014-05-13 20:38:42 -0500 |
commit | 8daacb90177f2da700e4906fe298248ebf1f7bd5 (patch) | |
tree | 1348056aec74e156a401841b436ce4b6dd658211 /src/main/java | |
parent | 730a62c96af811b035517d1891acd0265ffb8656 (diff) | |
download | craftbukkit-8daacb90177f2da700e4906fe298248ebf1f7bd5.tar craftbukkit-8daacb90177f2da700e4906fe298248ebf1f7bd5.tar.gz craftbukkit-8daacb90177f2da700e4906fe298248ebf1f7bd5.tar.lz craftbukkit-8daacb90177f2da700e4906fe298248ebf1f7bd5.tar.xz craftbukkit-8daacb90177f2da700e4906fe298248ebf1f7bd5.zip |
Implement awake flag for bats. Adds BUKKIT-5606
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java index 1e413cbe..ba0a960d 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java @@ -23,4 +23,14 @@ public class CraftBat extends CraftAmbient implements Bat { public EntityType getType() { return EntityType.BAT; } + + @Override + public boolean isAwake() { + return getHandle().isStartled(); + } + + @Override + public void setAwake(boolean state) { + getHandle().setStartled(state); + } } |