mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-25 10:37:35 +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");
|
||||
}
|
||||
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user