mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
Implement getting / setting of Entity invulnerability
This commit is contained in:
parent
6067e54dd2
commit
ea49b2eee9
1 changed files with 10 additions and 0 deletions
|
@ -553,6 +553,16 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
||||||
return getHandle().glowing;
|
return getHandle().glowing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setInvulnerable(boolean flag) {
|
||||||
|
getHandle().h(flag); // PAIL: rename setInvulnerable
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isInvulnerable() {
|
||||||
|
return getHandle().isInvulnerable(DamageSource.GENERIC);
|
||||||
|
}
|
||||||
|
|
||||||
private static PermissibleBase getPermissibleBase() {
|
private static PermissibleBase getPermissibleBase() {
|
||||||
if (perm == null) {
|
if (perm == null) {
|
||||||
perm = new PermissibleBase(new ServerOperator() {
|
perm = new PermissibleBase(new ServerOperator() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue