mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 09:16:06 +01:00
Implement getting / setting of Entity invulnerability
By: Sansko1337 <sanderknauff@hotmail.com>
This commit is contained in:
parent
c75ec3cef3
commit
461d9faf00
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;
|
||||
}
|
||||
|
||||
@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() {
|
||||
if (perm == null) {
|
||||
perm = new PermissibleBase(new ServerOperator() {
|
||||
|
|
Loading…
Add table
Reference in a new issue