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.entity.BetterEnderPearlEntity;
import net.minecraft.entity.*;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.ForgeRegistries;

public class TestEntityTypes {
	
	public static final CommonDeferredRegister<EntityType<?>> ENTITY_TYPES = CommonDeferredRegister.create(ForgeRegistries.ENTITIES, TestMod.MODID);
	
	public static final RegistryObject<EntityType<BetterEnderPearlEntity>> BETTER_ENDERPEARL = ENTITY_TYPES.register("better_enderpearl", () -> EntityType.Builder.<BetterEnderPearlEntity> create(BetterEnderPearlEntity::new, EntityClassification.MISC).size(0.25F, 0.25F).setTrackingRange(128).setUpdateInterval(20).setShouldReceiveVelocityUpdates(true).build(null));
	
	public static void register(IEventBus bus) {
		ENTITY_TYPES.register(bus);
	}
}

@@ -77,22 +77,26 @@
 egistry.
-Common
+EntityType
 Deferred
@@ -337,62 +337,8 @@
 ect;
-%0Aimport net.minecraftforge.registries.ForgeRegistries;
 %0A%0Apu
@@ -389,22 +389,26 @@
 c final 
-Common
+EntityType
 Deferred
@@ -419,23 +419,8 @@
 ster
-%3CEntityType%3C?%3E%3E
  ENT
@@ -435,14 +435,18 @@
 S = 
-Common
+EntityType
 Defe
@@ -469,34 +469,8 @@
 ate(
-ForgeRegistries.ENTITIES, 
 Test
@@ -835,20 +835,8 @@
 rue)
-.build(null)
 );%0A%09

Use the new system in test entity types