mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
SPIGOT-4650: Charging API for Vex
By: md_5 <git@md-5.net>
This commit is contained in:
parent
a6bce7bfb4
commit
a257532ba2
@ -25,4 +25,14 @@ public class CraftVex extends CraftMonster implements Vex {
|
|||||||
public EntityType getType() {
|
public EntityType getType() {
|
||||||
return EntityType.VEX;
|
return EntityType.VEX;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isCharging() {
|
||||||
|
return getHandle().dA();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setCharging(boolean charging) {
|
||||||
|
getHandle().a(charging);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user