diff options
author | md_5 <git@md-5.net> | 2016-03-01 08:30:03 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-01 08:30:03 +1100 |
commit | d2656274bfd5013cc74eeb59d09be836a5d58718 (patch) | |
tree | e0daa51a6bd0a5275c9748c530749efd535af11f | |
parent | 2023127d5587259cc6b282354d410e8fe3aedf33 (diff) | |
download | bukkit-d2656274bfd5013cc74eeb59d09be836a5d58718.tar bukkit-d2656274bfd5013cc74eeb59d09be836a5d58718.tar.gz bukkit-d2656274bfd5013cc74eeb59d09be836a5d58718.tar.lz bukkit-d2656274bfd5013cc74eeb59d09be836a5d58718.tar.xz bukkit-d2656274bfd5013cc74eeb59d09be836a5d58718.zip |
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.
-rw-r--r-- | src/main/java/org/bukkit/entity/Entity.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java index de7815fe..6dc70768 100644 --- a/src/main/java/org/bukkit/entity/Entity.java +++ b/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(); } |