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