📜  创建新的瓷砖实体 minecraft - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:58.858000             🧑  作者: Mango

代码示例1
@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);
}