WitherSkull's can turn blue. Who knew?
This commit is contained in:
parent
8ebd632363
commit
83750309c7
@ -0,0 +1,21 @@
|
|||||||
|
package me.libraryaddict.disguise.DisguiseTypes.Watchers;
|
||||||
|
|
||||||
|
import me.libraryaddict.disguise.DisguiseTypes.Disguise;
|
||||||
|
import me.libraryaddict.disguise.DisguiseTypes.FlagWatcher;
|
||||||
|
|
||||||
|
public class WitherSkullWatcher extends FlagWatcher {
|
||||||
|
|
||||||
|
public WitherSkullWatcher(Disguise disguise) {
|
||||||
|
super(disguise);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBlue() {
|
||||||
|
return (Byte) getValue(0, (byte) 0) == 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBlue(boolean blue) {
|
||||||
|
setValue(0, (byte) (blue ? 1 : 0));
|
||||||
|
sendData(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user