@@ -0,0 +1,1377 @@
+package info.u_team.u_team_core.util.registry;%0A%0Aimport java.util.function.Supplier;%0A%0Aimport com.mojang.datafixers.DataFixUtils;%0A%0Aimport net.minecraft.tileentity.*;%0Aimport net.minecraft.tileentity.TileEntityType.Builder;%0Aimport net.minecraft.util.SharedConstants;%0Aimport net.minecraft.util.datafix.*;%0Aimport net.minecraftforge.eventbus.api.IEventBus;%0Aimport net.minecraftforge.fml.RegistryObject;%0Aimport net.minecraftforge.registries.ForgeRegistries;%0A%0Apublic class TileEntityTypeDeferredRegister %7B%0A%09%0A%09public static TileEntityTypeDeferredRegister create(String modid) %7B%0A%09%09return new TileEntityTypeDeferredRegister(modid);%0A%09%7D%0A%09%0A%09private final CommonDeferredRegister%3CTileEntityType%3C?%3E%3E register;%0A%09%0A%09protected TileEntityTypeDeferredRegister(String modid) %7B%0A%09%09register = CommonDeferredRegister.create(ForgeRegistries.TILE_ENTITIES, modid);%0A%09%7D%0A%09%0A%09public %3CT extends TileEntity%3E RegistryObject%3CTileEntityType%3CT%3E%3E register(String name, Supplier%3CBuilder%3CT%3E%3E supplier) %7B%0A%09%09return register.register(name, () -%3E supplier.get().build(DataFixesManager.getDataFixer().getSchema(DataFixUtils.makeKey(SharedConstants.getVersion().getWorldVersion())).getChoiceType(TypeReferences.ENTITY_TYPE, register.getModid() + %22:%22 + name)));%0A%09%7D%0A%09%0A%09public void register(IEventBus bus) %7B%0A%09%09register.register(bus);%0A%09%7D%0A%09%0A%09public CommonDeferredRegister%3CTileEntityType%3C?%3E%3E getRegister() %7B%0A%09%09return register;%0A%09%7D%0A%09%0A%7D%0A

Add tile entity deferred register, that automatically builds the builder