creating new tile entity minecraft
@SubscribeEvent
public static void registerTE(RegistryEvent.Register<TileEntityType<?>> evt) {
TileEntityType<?> type = TileEntityType.Builder.of(factory, validBlocks).build(null);
type.setRegistryName("mymod", "myte");
evt.getRegistry().register(type);
}