mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +00:00
WitherSkull's can turn blue. Who knew?
This commit is contained in:
parent
8ebd632363
commit
83750309c7
1 changed files with 21 additions and 0 deletions
|
@ -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 a new issue