package info.u_team.u_team_test.init;

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.biome.BasicBiome;
import net.minecraft.world.biome.Biome;
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 TestBiomes {
	
	public static final Biome BASIC = new BasicBiome("basic");
	
	@SubscribeEvent
	public static void register(Register<Biome> event) {
		BaseRegistryUtil.getAllRegistryEntriesAndApplyNames(TestMod.MODID, Biome.class).forEach(event.getRegistry()::register);
	}
}

@@ -335,16 +335,62 @@
 eEvent;%0A
+import net.minecraftforge.fml.RegistryObject;%0A
 import n
@@ -507,17 +507,59 @@
 er.Bus;%0A
-%0A
+import net.minecraftforge.registries.*;%0A%0A//
 @EventBu
@@ -637,16 +637,18 @@
 es %7B%0A%09%0A%09
+//
 public s
@@ -698,18 +698,253 @@
 asic%22);%0A
-%09
 %0A
+%09public static final DeferredRegister%3CBiome%3E BLOCKS = DeferredRegister.create(ForgeRegistries.BIOMES, TestMod.MODID);%0A%0A%09public static final RegistryObject%3CBasicBiome%3E BASIC = BLOCKS.register(%22basic%22, () -%3E new BasicBiome(%22basic%22));%0A%09%0A//
 %09@Subscr
@@ -952,16 +952,18 @@
 beEvent%0A
+//
 %09public 
@@ -1008,16 +1008,18 @@
 vent) %7B%0A
+//
 %09%09BaseRe
@@ -1132,13 +1132,15 @@
 ister);%0A
+//
 %09%7D%0A%7D%0A

Test deferred registry with biomes