Commits
Matthew Steglinski authored and md_5 committed cc7111fedab
32 32 | * This method will get the target of individual heads {@link Head} of the |
33 33 | * wither. |
34 34 | * |
35 35 | * @param head the individual head |
36 36 | * @return the entity targeted by the given head, or null if none is |
37 37 | * targeted |
38 38 | */ |
39 39 | |
40 40 | LivingEntity getTarget( Head head); |
41 41 | |
42 + | /** |
43 + | * Returns the wither's current invulnerability ticks. |
44 + | * |
45 + | * @return amount of invulnerability ticks |
46 + | */ |
47 + | int getInvulnerabilityTicks(); |
48 + | |
49 + | /** |
50 + | * Sets the wither's current invulnerability ticks. |
51 + | * |
52 + | * When invulnerability ticks reach 0, the wither will trigger an explosion. |
53 + | * |
54 + | * @param ticks amount of invulnerability ticks |
55 + | */ |
56 + | void setInvulnerabilityTicks(int ticks); |
57 + | |
42 58 | /** |
43 59 | * Represents one of the Wither's heads. |
44 60 | */ |
45 61 | enum Head { |
46 62 | |
47 63 | CENTER, |
48 64 | LEFT, |
49 65 | RIGHT |
50 66 | } |
51 67 | } |