package info.u_team.u_team_core.item.armor;

import info.u_team.u_team_core.util.ItemProperties;
import net.minecraft.item.*;
import net.minecraft.item.Item.Properties;

public class ArmorSetCreator {
	
	public static ArmorSet create(String name, Properties properties, IArmorMaterial material) {
		return create(name, null, properties, material);
	}
	
	public static ArmorSet create(String name, ItemGroup group, Properties properties, IArmorMaterial material) {
		return new ArmorSet(new UHelmetItem(name, group, new ItemProperties(properties), material), new UChestplateItem(name, group, new ItemProperties(properties), material), new ULeggingsItem(name, group, new ItemProperties(properties), material), new UBootsItem(name, group, new ItemProperties(properties), material));
	}
}

@@ -161,16 +161,117 @@
 perties;
+%0Aimport net.minecraftforge.fml.RegistryObject;%0Aimport net.minecraftforge.registries.DeferredRegister;
 %0A%0Apublic
@@ -320,32 +320,65 @@
 ArmorSet create(
+DeferredRegister%3CItem%3E register, 
 String name, Pro
@@ -440,16 +440,26 @@
  create(
+register, 
 name, nu
@@ -521,16 +521,49 @@
  create(
+DeferredRegister%3CItem%3E register, 
 String n
@@ -640,249 +640,593 @@
 %7B%0A%09%09
-return new ArmorSet(new UHelmetItem(name, group, new ItemProperties(properties), material), new UChestplateItem(name, group, new ItemProperties(properties), material), new ULeggingsItem(name, group, new ItemProperties(properties), material),
+final RegistryObject%3CUHelmetItem%3E helmet = register.register(name + %22_helmet%22, () -%3E new UHelmetItem(name, group, new ItemProperties(properties), material));%0A%09%09final RegistryObject%3CUChestplateItem%3E chestplate = register.register(name + %22_chestplate%22, () -%3E new UChestplateItem(name, group, new ItemProperties(properties), material));%0A%09%09final RegistryObject%3CULeggingsItem%3E leggings = register.register(name + %22_leggings%22, () -%3E new ULeggingsItem(name, group, new ItemProperties(properties), material));%0A%09%09final RegistryObject%3CUBootsItem%3E boots = register.register(name + %22_boots%22, () -%3E
  new
@@ -1294,13 +1294,76 @@
 rial));%0A
+%09%09%0A%09%09return new ArmorSet(helmet, chestplate, leggings, boots);%0A
 %09%7D%0A%7D%0A

Update armor set with new register