Add the ability to set and get the wither invulunbility.

This commit is contained in:
Andrew 2013-11-15 14:19:05 +13:00
parent 3e8532e6ff
commit 32cafd1b57

View File

@ -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);
}
}