package info.u_team.u_team_test.init;

import info.u_team.u_team_core.item.armor.*;
import info.u_team.u_team_core.item.tool.*;
import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.item.*;
import net.minecraft.item.Item;
import net.minecraft.item.Item.Properties;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.*;

public class TestItems {
	
	public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, TestMod.MODID);
	
	public static final Item BASIC = new BasicItem("basicitem");
	
	public static final Item BETTER_ENDERPEARL = new BetterEnderPearlItem("better_enderpearl");
	
	public static final Item BASIC_FOOD = new BasicFoodItem("basicfood");
	
	public static final ToolSet BASIC_TOOL = ToolSetCreator.create("basictool", TestItemGroups.GROUP, new Properties(), TestToolMaterial.BASIC);
	public static final ArmorSet BASIC_ARMOR = ArmorSetCreator.create("basicarmor", TestItemGroups.GROUP, new Properties(), TestArmorMaterial.BASIC);
	
	public static void register(IEventBus bus) {
		ITEMS.register(bus);
	}
}

@@ -325,16 +325,62 @@
 entBus;%0A
+import net.minecraftforge.fml.RegistryObject;%0A
 import n
@@ -581,20 +581,36 @@
 nal 
+RegistryObject%3C
 Item
+%3E
  BASIC =
  new
@@ -605,16 +605,50 @@
  BASIC =
+ ITEMS.register(%22basicitem%22, () -%3E
  new Bas
@@ -666,16 +666,17 @@
 icitem%22)
+)
 ;%0A%09%0A%09pub
@@ -692,20 +692,36 @@
 c final 
+RegistryObject%3C
 Item
+%3E
  BETTER_
@@ -732,16 +732,58 @@
 RPEARL =
+ ITEMS.register(%22better_enderpearl%22, () -%3E
  new Bet
@@ -820,16 +820,17 @@
 rpearl%22)
+)
 ;%0A%09%0A%09pub
@@ -846,20 +846,36 @@
 c final 
+RegistryObject%3C
 Item
+%3E
  BASIC_F
@@ -879,16 +879,50 @@
 C_FOOD =
+ ITEMS.register(%22basicfood%22, () -%3E
  new Bas
@@ -944,16 +944,17 @@
 icfood%22)
+)
 ;%0A%09%0A%09pub

Use the deferred register now for items (tools and armor do not work currently)