package info.u_team.u_team_core.item.tool;

import info.u_team.u_team_core.api.IToolMaterial;
import info.u_team.u_team_core.util.ItemProperties;
import net.minecraft.item.Item.Properties;
import net.minecraft.item.ItemGroup;

public class ToolSetCreator {
	
	public static ToolSet create(String name, Properties properties, IToolMaterial material) {
		return create(name, null, properties, material);
	}
	
	public static ToolSet create(String name, ItemGroup group, Properties properties, IToolMaterial material) {
		return new ToolSet(new UAxeItem(name + "_axe", group, new ItemProperties(properties), material), new UHoeItem(name + "_hoe", group, new ItemProperties(properties), material), new UPickaxeItem(name + "_pickaxe", group, new ItemProperties(properties), material), new UShovelItem(name + "_shovel", group, new ItemProperties(properties), material), new USwordItem(name + "_sword", group, new ItemProperties(properties), material));
	}
	
}

@@ -131,32 +131,61 @@
 ItemProperties;%0A
+import net.minecraft.item.*;%0A
 import net.minec
@@ -235,23 +235,87 @@
 raft
-.item.ItemGroup
+forge.fml.RegistryObject;%0Aimport net.minecraftforge.registries.DeferredRegister
 ;%0A%0Ap
@@ -367,32 +367,65 @@
  ToolSet create(
+DeferredRegister%3CItem%3E register, 
 String name, Pro
@@ -486,16 +486,26 @@
  create(
+register, 
 name, nu
@@ -566,16 +566,49 @@
  create(
+DeferredRegister%3CItem%3E register, 
 String n
@@ -684,433 +684,808 @@
 %7B%0A%09%09
-return new ToolSet(new UAxeItem(name + %22_axe%22, group, new ItemProperties(properties), material), new UHoeItem(name + %22_hoe%22, group, new ItemProperties(properties), material), new UPickaxeItem(name + %22_pickaxe%22, group, new ItemProperties(properties), material), new UShovelItem(name + %22_shovel%22, group, new ItemProperties(properties), material), new USwordItem(name + %22_sword%22, group, new ItemProperties(properties), material)
+final RegistryObject%3CUAxeItem%3E axe = register.register(name + %22_axe%22, () -%3E new UAxeItem(group, new ItemProperties(properties), material));%0A%09%09final RegistryObject%3CUHoeItem%3E hoe = register.register(name + %22_hoe%22, () -%3E new UHoeItem(group, new ItemProperties(properties), material));%0A%09%09final RegistryObject%3CUPickaxeItem%3E pickaxe = register.register(name + %22_pickaxe%22, () -%3E new UPickaxeItem(group, new ItemProperties(properties), material));%0A%09%09final RegistryObject%3CUShovelItem%3E shovel = register.register(name + %22_shovel%22, () -%3E new UShovelItem(group, new ItemProperties(properties), material));%0A%09%09final RegistryObject%3CUSwordItem%3E sword = register.register(name + %22_sword%22, () -%3E new USwordItem(group, new ItemProperties(properties), material));%0A%09%09%0A%09%09return new ToolSet(axe, hoe, pickaxe, shovel, sword
 );%0A%09

Update tool set creator