package info.u_team.u_team_test.init;

import info.u_team.u_team_core.util.registry.CommonDeferredRegister;
import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.tileentity.*;
import net.minecraft.tileentity.TileEntityType;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.ForgeRegistries;

public class TestTileEntityTypes {
	
	public static final CommonDeferredRegister<TileEntityType<?>> TILE_ENTITY_TYPES = CommonDeferredRegister.create(ForgeRegistries.TILE_ENTITIES, TestMod.MODID);
	
	public static final RegistryObject<TileEntityType<BasicTileEntityTileEntity>> BASIC = TILE_ENTITY_TYPES.register("tileentity", () -> TileEntityType.Builder.create(BasicTileEntityTileEntity::new, TestBlocks.BASIC_TILEENTITY.get()).build(null));
	
	public static final RegistryObject<TileEntityType<BasicEnergyCreatorTileEntity>> BASIC_ENERGY_CREATOR = TILE_ENTITY_TYPES.register("energy_creator", () -> TileEntityType.Builder.create(BasicEnergyCreatorTileEntity::new, TestBlocks.BASIC_ENERGY_CREATOR.get()).build(null));
	
	public static final RegistryObject<TileEntityType<BasicFluidInventoryTileEntity>> BASIC_FLUID_INVENTORY = TILE_ENTITY_TYPES.register("fluid_inventory", () -> TileEntityType.Builder.create(BasicFluidInventoryTileEntity::new, TestBlocks.BASIC_FLUID_INVENTORY.get()).build(null));
	
	public static void register(IEventBus bus) {
		TILE_ENTITY_TYPES.register(bus);
	}
	
}

@@ -77,22 +77,30 @@
 egistry.
-Common
+TileEntityType
 Deferred
@@ -341,62 +341,8 @@
 ect;
-%0Aimport net.minecraftforge.registries.ForgeRegistries;
 %0A%0Apu
@@ -397,22 +397,30 @@
 c final 
-Common
+TileEntityType
 Deferred
@@ -431,27 +431,8 @@
 ster
-%3CTileEntityType%3C?%3E%3E
  TIL
@@ -452,14 +452,22 @@
 S = 
-Common
+TileEntityType
 Defe
@@ -490,39 +490,8 @@
 ate(
-ForgeRegistries.TILE_ENTITIES, 
 Test
@@ -730,36 +730,24 @@
 NTITY.get())
-.build(null)
 );%0A%09%0A%09public
@@ -994,36 +994,24 @@
 EATOR.get())
-.build(null)
 );%0A%09%0A%09public
@@ -1271,20 +1271,8 @@
 t())
-.build(null)
 );%0A%09

Use the new tile entity type deferred register now in test tile entity types