mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
SPIGOT-713: APIs to manipulate Entity's silent status.
By: Sansko1337 <sanderknauff@hotmail.com>
This commit is contained in:
parent
c1bd122e35
commit
a9862b5459
1 changed files with 10 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue