package info.u_team.u_team_test.init;

import info.u_team.u_team_core.entitytype.UEntityType;
import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.entity.BetterEnderPearlEntity;
import net.minecraft.entity.*;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.*;

public class TestEntityTypes {
	
	public static final DeferredRegister<EntityType<?>> ENTITY_TYPES = DeferredRegister.create(ForgeRegistries.ENTITIES, TestMod.MODID);
	
	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();
	
	
	public static void register(IEventBus bus) {
		ENTITY_TYPES.register(bus);
	}
}

@@ -270,16 +270,62 @@
 entBus;%0A
+import net.minecraftforge.fml.RegistryObject;%0A
 import n
@@ -356,16 +356,16 @@
 ries.*;%0A
-
 %0Apublic 
@@ -547,16 +547,31 @@
 c final 
+RegistryObject%3C
 EntityTy
@@ -596,16 +596,17 @@
 lEntity%3E
+%3E
  BETTER_
@@ -617,16 +617,65 @@
 RPEARL =
+ ENTITY_TYPES.register(%22better_enderpearl%22, () -%3E
  UEntity
@@ -905,19 +905,18 @@
 .build()
+)
 ;
-%0A%09
 %0A%09%0A%09publ

Change the test entity type register for the better ender pearl to use the deferred register