Add the ability to set and get the wither invulunbility.
This commit is contained in:
parent
3e8532e6ff
commit
32cafd1b57
@ -0,0 +1,28 @@
|
|||||||
|
package me.libraryaddict.disguise.disguisetypes.watchers;
|
||||||
|
|
||||||
|
import me.libraryaddict.disguise.disguisetypes.Disguise;
|
||||||
|
|
||||||
|
public class WitherWatcher extends LivingWatcher {
|
||||||
|
|
||||||
|
public WitherWatcher(Disguise disguise) {
|
||||||
|
super(disguise);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getInvul() {
|
||||||
|
return getInvulnerability();
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getInvulnerability() {
|
||||||
|
return (Integer) getValue(20, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInvul(int invulnerability) {
|
||||||
|
setValue(20, invulnerability);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInvulnerability(int invulnerability) {
|
||||||
|
setValue(20, invulnerability);
|
||||||
|
sendData(20);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user