Ejemplo n.º 1
0
  @EventHandler
  public static void init(FMLInitializationEvent event) {
    PacketHandler.init();

    itemRegistry.addRecipes();
    blockRegistry.addRecipes();
  }
Ejemplo n.º 2
0
  @EventHandler
  public static void preInit(FMLPreInitializationEvent event) {
    ConfigHandler.INSTANCE.initialize(event.getSuggestedConfigurationFile());

    NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler());

    proxy.preInit();

    itemRegistry.register();
    blockRegistry.register();
    entityRegistry.init();

    proxy.registerRenderers();

    enchantRegistry.init();

    Achievements.initAchievements();

    starRegistry.registerDefaultStars();

    FMLInterModComms.sendMessage(
        "Waila", "register", ModProps.MAIN_PACKAGE + ".common.compat.waila.WailaCompat.load");

    CompatRegistry.INSTANCE.registerCompat(
        RegisterTime.INIT,
        ModProps.MAIN_PACKAGE + ".common.compat.enderio.EnderIOCompat",
        "EnderIO");
  }