From 08d16b85fb7c5a9c5e552f4a3a49ae01b4ac9a73 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 1 Mar 2016 08:30:03 +1100 Subject: [PATCH] Add API to manipulate "glowing" state of an Entity. When an Entity is "glowing" they will have an outline around them as if they have been hit by a Spectral Arrow. By: md_5 --- .../src/main/java/org/bukkit/entity/Entity.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Entity.java b/paper-api/src/main/java/org/bukkit/entity/Entity.java index de7815fee3..6dc7076819 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Entity.java +++ b/paper-api/src/main/java/org/bukkit/entity/Entity.java @@ -342,4 +342,18 @@ public interface Entity extends Metadatable, CommandSender { * @return if the custom name is displayed */ public boolean isCustomNameVisible(); + + /** + * Sets whether the entity has a team colored (default: white) glow. + * + * @param flag if the entity is glowing + */ + void setGlowing(boolean flag); + + /** + * Gets whether the entity is glowing or not. + * + * @return whether the entity is glowing + */ + boolean isGlowing(); }