From a9891b05f19a8e4783ce6383dccfdb69fe3e0513 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 5 Mar 2019 16:47:25 +1100 Subject: [PATCH] SPIGOT-4650: Charging API for Vex By: md_5 --- .../src/main/java/org/bukkit/entity/Vex.java | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/Vex.java b/paper-api/src/main/java/org/bukkit/entity/Vex.java index a2f2fcaec8..6b61c4ab77 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Vex.java +++ b/paper-api/src/main/java/org/bukkit/entity/Vex.java @@ -3,4 +3,23 @@ package org.bukkit.entity; /** * Represents a Vex. */ -public interface Vex extends Monster { } +public interface Vex extends Monster { + + /** + * Gets the charging state of this entity. + * + * When this entity is charging it will having a glowing red texture. + * + * @return charging state + */ + boolean isCharging(); + + /** + * Sets the charging state of this entity. + * + * When this entity is charging it will having a glowing red texture. + * + * @param charging new state + */ + void setCharging(boolean charging); +}