Add set/get boots,leggings,chestplate,helmet

This commit is contained in:
libraryaddict 2020-04-21 19:14:02 +12:00
parent 3a2c121f0f
commit d65c9179da
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -84,6 +84,38 @@ public class FlagWatcher {
return cloned;
}
public ItemStack getHelmet() {
return getEquipment().getHelmet();
}
public void setHelmet(ItemStack itemStack) {
getEquipment().setHelmet(itemStack);
}
public ItemStack getBoots() {
return getEquipment().getBoots();
}
public void setBoots(ItemStack itemStack) {
getEquipment().setBoots(itemStack);
}
public ItemStack getLeggings() {
return getEquipment().getLeggings();
}
public void setLeggings(ItemStack itemStack) {
getEquipment().setLeggings(itemStack);
}
public ItemStack getChestplate() {
return getEquipment().getChestplate();
}
public void setChestplate(ItemStack itemStack) {
getEquipment().setChestplate(itemStack);
}
public List<WrappedWatchableObject> convert(List<WrappedWatchableObject> list) {
List<WrappedWatchableObject> newList = new ArrayList<>();
HashSet<Integer> sentValues = new HashSet<>();