Added ability to change horse types

This commit is contained in:
Andrew 2013-07-07 20:38:07 +12:00
parent c2530f4fe2
commit e0129c154a

View File

@ -5,10 +5,25 @@ public class HorseWatcher extends AgeableWatcher {
public HorseWatcher(int entityId) { public HorseWatcher(int entityId) {
super(entityId); super(entityId);
setValue(16, 0); setValue(16, 0);
// Horse types (19) are
// Horse
// Donkey
// Mule
// Zombie
// Skeleton
setValue(19, (byte) 0); setValue(19, (byte) 0);
setValue(20, 0); setValue(20, 0);
setValue(21, ""); setValue(21, "");
setValue(22, 0); setValue(22, 0);
} }
public void setHorseType(int type) {
setValue(19, (byte) type);
sendData(19);
}
public int getHorseType() {
return (int) (Byte) getValue(19);
}
} }