SPIGOT-713: APIs to manipulate Entity's silent status.

By: Sansko1337 <sanderknauff@hotmail.com>
This commit is contained in:
CraftBukkit/Spigot 2016-05-27 17:34:11 +02:00
parent c1bd122e35
commit a9862b5459

View file

@ -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() {