Add witchwatcher (isAggressive and setAggressive)
This commit is contained in:
parent
f7642f2883
commit
7d0175c563
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user