Add witchwatcher (isAggressive and setAggressive)

This commit is contained in:
libraryaddict 2014-07-14 12:13:30 +12:00
parent f7642f2883
commit 7d0175c563

View File

@ -0,0 +1,20 @@
package me.libraryaddict.disguise.disguisetypes.watchers;
import me.libraryaddict.disguise.disguisetypes.Disguise;
public class WitchWatcher extends LivingWatcher {
public WitchWatcher(Disguise disguise) {
super(disguise);
}
public void setAggressive(boolean isTrue) {
setValue(21, (byte) (isTrue ? 1 : 0));
sendData(21);
}
public boolean isAggressive() {
return (Byte) getValue(21, (byte) 0) == 1;
}
}