mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 19:28:03 +01:00
#276: Add accessors to Wither's invulnerability ticks
By: Matthew <stteg@hotmail.com>
This commit is contained in:
parent
6c20b023e6
commit
dd112b4907
1 changed files with 16 additions and 0 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue