diff options
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 5572ac1d..83f91313 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -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() { |