package info.u_team.u_team_test.init;

import java.util.List;

import info.u_team.u_team_core.util.registry.BaseRegistryUtil;
import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.block.*;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraftforge.event.RegistryEvent.Register;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;

@EventBusSubscriber(modid = TestMod.MODID, bus = Bus.MOD)
public class TestBlocks {
	
	public static final BasicBlock BASIC = new BasicBlock("basicblock");
	
	public static final BasicTileEntityBlock BASIC_TILEENTITY = new BasicTileEntityBlock("tileentity");
	
	public static final BasicEnergyCreatorBlock BASIC_ENERGY_CREATOR = new BasicEnergyCreatorBlock("energy_creator");
	
	public static final BasicFluidInventoryBlock BASIC_FLUID_INVENTORY = new BasicFluidInventoryBlock("fluid_inventory");
	
	@SubscribeEvent
	public static void register(Register<Block> event) {
		entries = BaseRegistryUtil.getAllRegistryEntriesAndApplyNames(TestMod.MODID, Block.class);
		entries.forEach(event.getRegistry()::register);
	}
	
	@SubscribeEvent
	public static void registerBlockItem(Register<Item> event) {
		BaseRegistryUtil.getBlockItems(entries).forEach(event.getRegistry()::register);
	}
	
	// Just a cache for the block item registry for performance
	private static List<Block> entries;
	
}

@@ -43,1452 +43,479 @@
 ort 
-java.util.List;%0A%0Aimport info.u_team.u_team_core.util.registry.BaseRegistryUtil;%0Aimport info.u_team.u_team_test.TestMod;%0Aimport info.u_team.u_team_test.block.*;%0Aimport net.minecraft.block.Block;%0Aimport net.minecraft.item.Item;%0Aimport net.minecraftforge.event.RegistryEvent.Register;%0Aimport net.minecraftforge.eventbus.api.SubscribeEvent;%0Aimport net.minecraftforge.fml.common.Mod.EventBusSubscriber;%0Aimport net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;%0A%0A@EventBusSubscriber(modid = TestMod.MODID, bus = Bus.MOD)%0Apublic class TestBlocks %7B%0A%09%0A%09public static final BasicBlock BASIC = new BasicBlock(%22basicblock%22);%0A%09%0A%09public static final BasicTileEntityBlock BASIC_TILEENTITY = new BasicTileEntityBlock(%22tileentity%22);%0A%09%0A%09public static final BasicEnergyCreatorBlock BASIC_ENERGY_CREATOR = new BasicEnergyCreatorBlock(%22energy_creator%22);%0A%09%0A%09public static final BasicFluidInventoryBlock BASIC_FLUID_INVENTORY = new BasicFluidInventoryBlock(%22fluid_inventory%22);%0A%09%0A%09@SubscribeEvent%0A%09public static void register(Register%3CBlock%3E event) %7B%0A%09%09entries = BaseRegistryUtil.getAllRegistryEntriesAndApplyNames(TestMod.MODID, Block.class);%0A%09%09entries.forEach(event.getRegistry()::register);%0A%09%7D%0A%09%0A%09@SubscribeEvent%0A%09public static void registerBlockItem(Register%3CItem%3E event) %7B%0A%09%09BaseRegistryUtil.getBlockItems(entries).forEach(event.getRegistry()::register);%0A%09%7D%0A%09%0A%09// Just a cache for the block item registry for performance%0A%09private static List%3CBlock%3E entries
+info.u_team.u_team_test.block.*;%0A%0Apublic class TestBlocks %7B%0A%09%0A%09public static final BasicBlock BASIC = new BasicBlock(%22basicblock%22);%0A%09%0A%09public static final BasicTileEntityBlock BASIC_TILEENTITY = new BasicTileEntityBlock(%22tileentity%22);%0A%09%0A%09public static final BasicEnergyCreatorBlock BASIC_ENERGY_CREATOR = new BasicEnergyCreatorBlock(%22energy_creator%22);%0A%09%0A%09public static final BasicFluidInventoryBlock BASIC_FLUID_INVENTORY = new BasicFluidInventoryBlock(%22fluid_inventory%22)
 ;%0A%09%0A

Remove old stuff