mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-26 11:07:59 +01:00
Add methods to horsemodifiers for saddle/armor control
This commit is contained in:
parent
cfbdb42360
commit
79162388f9
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user