Implement awake flag for bats. Adds BUKKIT-5606

By: Wesley Wolfe <wesley.d.wolfe+git@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2014-05-13 20:38:42 -05:00
parent 5b252941b0
commit f9d2ead6bf

View file

@ -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);
}
}