summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/entity/Entity.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java
index bba33b95..2c10ce65 100644
--- a/src/main/java/org/bukkit/entity/Entity.java
+++ b/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.
+ * <p>
+ * When an entity is silent it will not produce any sound.
+ *
+ * @param flag if the entity is silent
+ */
+ public void setSilent(boolean flag);
}