@@ -0,0 +1,866 @@
+package info.u_team.u_team_core.util.registry;%0A%0Aimport java.util.function.Supplier;%0A%0Aimport net.minecraft.entity.*;%0Aimport net.minecraft.entity.EntityType.Builder;%0Aimport net.minecraftforge.fml.RegistryObject;%0Aimport net.minecraftforge.registries.ForgeRegistries;%0A%0Apublic class EntityTypeDeferredRegister %7B%0A%09%0A%09public static EntityTypeDeferredRegister create(String modid) %7B%0A%09%09return new EntityTypeDeferredRegister(modid);%0A%09%7D%0A%09%0A%09private final CommonDeferredRegister%3CEntityType%3C?%3E%3E register;%0A%09%0A%09protected EntityTypeDeferredRegister(String modid) %7B%0A%09%09register = CommonDeferredRegister.create(ForgeRegistries.ENTITIES, modid);%0A%09%7D%0A%09%0A%09public %3CE extends Entity, B extends Builder%3CE%3E%3E RegistryObject%3CEntityType%3CE%3E%3E register(String name, Supplier%3C? extends B%3E supplier) %7B%0A%09%09return register.register(name, () -%3E supplier.get().build(register.getModid() + %22:%22 + name));%0A%09%7D%0A%09%0A%7D%0A

Add entity type deferred register to make the build method a bit nicer