#276: Add accessors to Wither's invulnerability ticks

This commit is contained in:
Matthew 2023-04-21 18:59:01 +10:00 committed by md_5
parent 777d24e9e4
commit cc7111feda
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -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.
*/