From a9862b545906baf0f1e67c1245b7c58c74547820 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 27 May 2016 17:34:11 +0200 Subject: [PATCH] SPIGOT-713: APIs to manipulate Entity's silent status. By: Sansko1337 --- .../org/bukkit/craftbukkit/entity/CraftEntity.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 79fcbc4c90..228ca2859e 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/paper-server/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() {