mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Add witchwatcher (isAggressive and setAggressive)
This commit is contained in:
parent
f7642f2883
commit
7d0175c563
1 changed files with 20 additions and 0 deletions
|
@ -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 a new issue