From e0129c154a90bb1d85bf6d6c4b49865246962cc5 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 7 Jul 2013 20:38:07 +1200 Subject: [PATCH] Added ability to change horse types --- .../DisguiseTypes/Watchers/HorseWatcher.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/me/libraryaddict/disguise/DisguiseTypes/Watchers/HorseWatcher.java b/src/me/libraryaddict/disguise/DisguiseTypes/Watchers/HorseWatcher.java index b5c411e0..aec60eaf 100644 --- a/src/me/libraryaddict/disguise/DisguiseTypes/Watchers/HorseWatcher.java +++ b/src/me/libraryaddict/disguise/DisguiseTypes/Watchers/HorseWatcher.java @@ -5,10 +5,25 @@ public class HorseWatcher extends AgeableWatcher { public HorseWatcher(int entityId) { super(entityId); setValue(16, 0); + // Horse types (19) are + // Horse + // Donkey + // Mule + // Zombie + // Skeleton setValue(19, (byte) 0); setValue(20, 0); setValue(21, ""); setValue(22, 0); } + public void setHorseType(int type) { + setValue(19, (byte) type); + sendData(19); + } + + public int getHorseType() { + return (int) (Byte) getValue(19); + } + }