From ccb9614e9506fe08c159e1c566561bdacf03935d Mon Sep 17 00:00:00 2001 From: Shane Bee Date: Sat, 19 Sep 2020 17:43:52 +1000 Subject: [PATCH] #548: LivingEntity - add methods for getting/setting invisibility --- src/main/java/org/bukkit/entity/LivingEntity.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java index 468a5e13..24c85818 100644 --- a/src/main/java/org/bukkit/entity/LivingEntity.java +++ b/src/main/java/org/bukkit/entity/LivingEntity.java @@ -591,4 +591,18 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource */ @NotNull public EntityCategory getCategory(); + + /** + * Sets whether the entity is invisible or not. + * + * @param invisible If the entity is invisible + */ + public void setInvisible(boolean invisible); + + /** + * Gets whether the entity is invisible or not. + * + * @return Whether the entity is invisible + */ + public boolean isInvisible(); }