📅  最后修改于: 2022-03-11 14:58:58.858000             🧑  作者: Mango
@SubscribeEvent
public static void registerTE(RegistryEvent.Register> evt) {
TileEntityType> type = TileEntityType.Builder.of(factory, validBlocks).build(null);
type.setRegistryName("mymod", "myte");
evt.getRegistry().register(type);
}