mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
SPIGOT-713: APIs to manipulate Entity's silent status.
This commit is contained in:
parent
5ff377a9b2
commit
dd0e968c6a
@ -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 New Issue
Block a user