geforkt von Mirrors/Paper
#375: Add accessors to Wither's invulnerability ticks
By: Matthew <stteg@hotmail.com>
Dieser Commit ist enthalten in:
Ursprung
695e12db3d
Commit
747897f79b
@ -61,4 +61,16 @@ public class CraftWither extends CraftMonster implements Wither {
|
||||
Entity target = getHandle().getLevel().getEntity(entityId);
|
||||
return (target != null) ? (LivingEntity) target.getBukkitEntity() : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInvulnerabilityTicks() {
|
||||
return getHandle().getInvulnerableTicks();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setInvulnerabilityTicks(int ticks) {
|
||||
Preconditions.checkArgument(ticks >= 0, "ticks must be >=0");
|
||||
|
||||
getHandle().setInvulnerableTicks(ticks);
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren