diff --git a/paper-api/src/main/java/org/bukkit/entity/Wither.java b/paper-api/src/main/java/org/bukkit/entity/Wither.java index 225c65a20a..b3a5d7a91e 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Wither.java +++ b/paper-api/src/main/java/org/bukkit/entity/Wither.java @@ -39,6 +39,22 @@ public interface Wither extends Monster, Boss { @Nullable LivingEntity getTarget(@NotNull Head head); + /** + * Returns the wither's current invulnerability ticks. + * + * @return amount of invulnerability ticks + */ + int getInvulnerabilityTicks(); + + /** + * Sets the wither's current invulnerability ticks. + * + * When invulnerability ticks reach 0, the wither will trigger an explosion. + * + * @param ticks amount of invulnerability ticks + */ + void setInvulnerabilityTicks(int ticks); + /** * Represents one of the Wither's heads. */