Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Implement getting / setting of Entity invulnerability
Dieser Commit ist enthalten in:
Ursprung
6067e54dd2
Commit
ea49b2eee9
@ -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() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren