From 1ab064ec0e40987605f1f011bdd374413b44576b Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 22 Jan 2014 18:07:11 +1300 Subject: [PATCH] Now can set and get the horse armor on a horse disguise --- .../disguise/disguisetypes/watchers/HorseWatcher.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/me/libraryaddict/disguise/disguisetypes/watchers/HorseWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/watchers/HorseWatcher.java index e4a5fb9b..8ddf8263 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/watchers/HorseWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/watchers/HorseWatcher.java @@ -18,6 +18,10 @@ public class HorseWatcher extends AgeableWatcher { return Color.values()[((Integer) getValue(20, 0) & 0xFF)]; } + public int getHorseArmor() { + return (Integer) getValue(22, 0); + } + public String getOwnerName() { return (String) getValue(21, ""); } @@ -101,6 +105,11 @@ public class HorseWatcher extends AgeableWatcher { setFlag(32, grazing); } + public void setHorseArmor(int armor) { + setValue(22, armor % 4); + sendData(22); + } + public void setMouthOpen(boolean mouthOpen) { setFlag(128, mouthOpen); }