mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Implement awake flag for bats. Adds BUKKIT-5606
This commit is contained in:
parent
730a62c96a
commit
8daacb9017
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…
Add table
Reference in a new issue