mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
SPIGOT-4650: Charging API for Vex
This commit is contained in:
@@ -25,4 +25,14 @@ public class CraftVex extends CraftMonster implements Vex {
|
||||
public EntityType getType() {
|
||||
return EntityType.VEX;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCharging() {
|
||||
return getHandle().dA();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCharging(boolean charging) {
|
||||
getHandle().a(charging);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user