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

This commit is contained in:
Sansko1337 2016-05-27 17:34:11 +02:00 committed by md_5
parent 5ff377a9b2
commit dd0e968c6a

View File

@ -563,6 +563,16 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
return getHandle().isInvulnerable(DamageSource.GENERIC); 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() { private static PermissibleBase getPermissibleBase() {
if (perm == null) { if (perm == null) {
perm = new PermissibleBase(new ServerOperator() { perm = new PermissibleBase(new ServerOperator() {