mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-05-29 07:41:19 +00:00
27 lines
846 B
Java
27 lines
846 B
Java
package me.libraryaddict.disguise.disguisetypes.watchers;
|
|
|
|
import me.libraryaddict.disguise.disguisetypes.Disguise;
|
|
import me.libraryaddict.disguise.disguisetypes.MetaIndex;
|
|
import me.libraryaddict.disguise.utilities.reflection.annotations.NmsRemovedIn;
|
|
import me.libraryaddict.disguise.utilities.reflection.NmsVersion;
|
|
|
|
public class VindicatorWatcher extends IllagerWatcher {
|
|
|
|
public VindicatorWatcher(Disguise disguise) {
|
|
super(disguise);
|
|
}
|
|
|
|
@Deprecated
|
|
@NmsRemovedIn(NmsVersion.v1_14)
|
|
public boolean isJohnny() {
|
|
return getData(MetaIndex.ILLAGER_META) == 1;
|
|
}
|
|
|
|
@Deprecated
|
|
@NmsRemovedIn(NmsVersion.v1_14)
|
|
public void setJohnny(boolean isJohnny) {
|
|
setData(MetaIndex.ILLAGER_META, (byte) (isJohnny ? 1 : 0));
|
|
sendData(MetaIndex.ILLAGER_META);
|
|
}
|
|
}
|