コード例 #1
0
 @EventHandler
 public void init(FMLInitializationEvent event) {
   ModItem.addNames();
   ModItem.registerRecipes();
   ModBlock.addNames();
   // ModBlock.registerRecipes();
 }
コード例 #2
0
  @EventHandler
  public void preInit(FMLPreInitializationEvent event) {
    ConfigHandler.init(event.getSuggestedConfigurationFile());

    ModItem.init();
    ModBlock.init();
    ModTile.init();

    MinecraftForge.EVENT_BUS.register(new EntityLivingHandler());
    MinecraftForge.EVENT_BUS.register(new EntityPlayerHandler());

    proxy.initSounds();
    proxy.initRenderers();
  }