Now can set and get the horse armor on a horse disguise

This commit is contained in:
libraryaddict 2014-01-22 18:07:11 +13:00
parent 85077227a2
commit 1ab064ec0e

@ -18,6 +18,10 @@ public class HorseWatcher extends AgeableWatcher {
return Color.values()[((Integer) getValue(20, 0) & 0xFF)]; return Color.values()[((Integer) getValue(20, 0) & 0xFF)];
} }
public int getHorseArmor() {
return (Integer) getValue(22, 0);
}
public String getOwnerName() { public String getOwnerName() {
return (String) getValue(21, ""); return (String) getValue(21, "");
} }
@ -101,6 +105,11 @@ public class HorseWatcher extends AgeableWatcher {
setFlag(32, grazing); setFlag(32, grazing);
} }
public void setHorseArmor(int armor) {
setValue(22, armor % 4);
sendData(22);
}
public void setMouthOpen(boolean mouthOpen) { public void setMouthOpen(boolean mouthOpen) {
setFlag(128, mouthOpen); setFlag(128, mouthOpen);
} }