コード例 #1
0
  @EventHandler
  public void postInit(FMLPostInitializationEvent event) {

    TFFluids.postInit();
    TFItems.postInit();
    TFBlocks.postInit();
    TFPlugins.postInit();

    proxy.registerEntities();
    proxy.registerRenderInformation();
  }
コード例 #2
0
  @EventHandler
  public void loadComplete(FMLLoadCompleteEvent event) {

    LexiconManager.loadComplete();

    TFPlugins.loadComplete();

    cleanConfig(false);
    config.cleanUp(false, true);
    configClient.cleanUp(false, true);

    log.info("Load Complete.");
  }
コード例 #3
0
  @EventHandler
  public void initialize(FMLInitializationEvent event) {

    TFFluids.initialize();
    TFItems.initialize();
    TFBlocks.initialize();
    TFPlugins.initialize();

    /* Init World Gen */
    loadWorldGeneration();

    /* Register Handlers */
    NetworkRegistry.INSTANCE.registerGuiHandler(instance, guiHandler);
    MinecraftForge.EVENT_BUS.register(proxy);
    EventHandlerLexicon.initialize();
    PacketTFBase.initialize();
  }
コード例 #4
0
  @EventHandler
  public void preInit(FMLPreInitializationEvent event) {

    UpdateManager.registerUpdater(new UpdateManager(this, releaseURL, CoFHProps.DOWNLOAD_URL));

    config.setConfiguration(
        new Configuration(
            new File(CoFHProps.configDir, "/cofh/thermalfoundation/common.cfg"), true));
    configClient.setConfiguration(
        new Configuration(
            new File(CoFHProps.configDir, "cofh/thermalfoundation/client.cfg"), true));

    tabCommon = new TFCreativeTab();

    cleanConfig(true);
    configOptions();

    TFFluids.preInit();
    TFItems.preInit();
    TFBlocks.preInit();
    TFPlugins.preInit();

    LexiconManager.preInit();
  }