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.fml.RegistryObject;
import net.minecraftforge.registries.*;

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

@@ -36,63 +36,8 @@
 t;%0A%0A
-import info.u_team.u_team_core.entitytype.UEntityType;%0A
 impo
@@ -612,17 +612,16 @@
 , () -%3E 
-U
 EntityTy
@@ -623,17 +623,16 @@
 ityType.
-U
 Builder.
@@ -663,37 +663,16 @@
  create(
-%22better_enderpearl%22, 
 BetterEn
@@ -824,14 +824,41 @@
 ue).
+disableSerialization().
 build(
+null
 ));%0A

Use the normal builder now (maybe we make a custom deferred register for that for easier use)