From dd0e968c6a32029fdae51106e44dd9073c9bfc39 Mon Sep 17 00:00:00 2001 From: Sansko1337 Date: Fri, 27 May 2016 17:34:11 +0200 Subject: [PATCH] SPIGOT-713: APIs to manipulate Entity's silent status. --- .../org/bukkit/craftbukkit/entity/CraftEntity.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 79fcbc4c90..228ca2859e 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -563,6 +563,16 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity { return getHandle().isInvulnerable(DamageSource.GENERIC); } + @Override + public boolean isSilent() { + return getHandle().ad(); // PAIL: Rename isSilent + } + + @Override + public void setSilent(boolean flag) { + getHandle().c(flag); // PAIL: Rename setSilent + } + private static PermissibleBase getPermissibleBase() { if (perm == null) { perm = new PermissibleBase(new ServerOperator() {