From b29158219cb5d93f181480ccdf1138936dc39625 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 27 May 2016 17:33:08 +0200 Subject: [PATCH] SPIGOT-713: APIs to manipulate Entity's silent status. By: Sansko1337 --- .../src/main/java/org/bukkit/entity/Entity.java | 16 ++++++++++++++++ 1 file changed, 16 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 bba33b95fd..2c10ce657a 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Entity.java +++ b/paper-api/src/main/java/org/bukkit/entity/Entity.java @@ -373,4 +373,20 @@ public interface Entity extends Metadatable, CommandSender { * @return whether the entity is */ public boolean isInvulnerable(); + + /** + * Gets whether the entity is silent or not. + * + * @return whether the entity is silent. + */ + public boolean isSilent(); + + /** + * Sets whether the entity is silent or not. + *

+ * When an entity is silent it will not produce any sound. + * + * @param flag if the entity is silent + */ + public void setSilent(boolean flag); }