package info.u_team.u_team_test.init;

import info.u_team.u_team_core.entitytype.UEntityType;
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.entity.BetterEnderPearlEntity;
import net.minecraft.entity.*;
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 TestEntityTypes {
	
	public static final EntityType<BetterEnderPearlEntity> BETTER_ENDERPEARL = UEntityType.UBuilder.<BetterEnderPearlEntity> create("better_enderpearl", BetterEnderPearlEntity::new, EntityClassification.MISC).size(0.25F, 0.25F).setTrackingRange(128).setUpdateInterval(20).setShouldReceiveVelocityUpdates(true).build();
	
	@SubscribeEvent
	public static void register(Register<EntityType<?>> event) {
		BaseRegistryUtil.getAllGenericRegistryEntriesAndApplyNames(TestMod.MODID, EntityType.class).forEach(event.getRegistry()::register);
	}
	
}

@@ -117,473 +117,75 @@
 eam_
-core.util.registry.BaseRegistryUtil;%0Aimport info.u_team.u_team_test.TestMod;%0Aimport info.u_team.u_team_test.entity.BetterEnderPearlEntity;%0Aimport net.minecraft.entity.*;%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)
+test.entity.BetterEnderPearlEntity;%0Aimport net.minecraft.entity.*;%0A
 %0Apub
@@ -536,224 +536,6 @@
 ;%0A%09%0A
-%09@SubscribeEvent%0A%09public static void register(Register%3CEntityType%3C?%3E%3E event) %7B%0A%09%09BaseRegistryUtil.getAllGenericRegistryEntriesAndApplyNames(TestMod.MODID, EntityType.class).forEach(event.getRegistry()::register);%0A%09%7D%0A%09%0A
 %7D%0A

Remove the old registry way from test entity types