mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-20 14:08:57 +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() {
|
public EntityType getType() {
|
||||||
return EntityType.BAT;
|
return EntityType.BAT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isAwake() {
|
||||||
|
return getHandle().isStartled();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setAwake(boolean state) {
|
||||||
|
getHandle().setStartled(state);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue