mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 18:27:17 +01:00
Implement awake flag for bats. Adds BUKKIT-5606
By: Wesley Wolfe <wesley.d.wolfe+git@gmail.com>
This commit is contained in:
parent
5b252941b0
commit
f9d2ead6bf
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue