Add methods to horsemodifiers for saddle/armor control

This commit is contained in:
fullwall 2016-04-06 01:32:38 +08:00
parent cfbdb42360
commit 79162388f9

View File

@ -29,10 +29,18 @@ public class HorseModifiers extends Trait {
super("horsemodifiers");
}
public ItemStack getArmor() {
return armor;
}
public Color getColor() {
return color;
}
public ItemStack getSaddle() {
return saddle;
}
public Style getStyle() {
return style;
}
@ -55,6 +63,10 @@ public class HorseModifiers extends Trait {
}
}
public void setArmor(ItemStack armor) {
this.armor = armor;
}
public void setCarryingChest(boolean carryingChest) {
this.carryingChest = carryingChest;
updateModifiers();
@ -65,6 +77,10 @@ public class HorseModifiers extends Trait {
updateModifiers();
}
public void setSaddle(ItemStack saddle) {
this.saddle = saddle;
}
public void setStyle(Horse.Style style) {
this.style = style;
updateModifiers();