From a257532ba244ad52a47af93a34a135c0e4656ffa Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 5 Mar 2019 16:47:33 +1100 Subject: [PATCH] SPIGOT-4650: Charging API for Vex By: md_5 --- .../java/org/bukkit/craftbukkit/entity/CraftVex.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftVex.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftVex.java index 787a41e015..0f01fc591d 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftVex.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftVex.java @@ -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); + } }