コード例 #1
0
 @EventHandler
 public void init(FMLInitializationEvent event) {
   IC2NuclearControl.instance.screenManager = new ScreenManager();
   initBlocks();
   registerBlocks();
   proxy.registerTileEntities();
   CrossModLoader.init();
   if (Loader.isModLoaded("OpenComputers")) crossOC = new CrossOpenComputers();
   // Registers waila stuff
   // FMLInterModComms.sendMessage("Waila", "register",
   // "shedar.mods.ic2.nuclearcontrol.crossmod.waila.CrossWaila.callbackRegister");
   // CrossBigReactors.doStuff();
   // CrossAppeng.RegistrationCheck();
 }
コード例 #2
0
  @EventHandler
  public void postInit(FMLPostInitializationEvent event) {
    proxy.cape();
    CrossModLoader.postinit();
    crossBC = new CrossBuildcraft();
    crossIC2 = new CrossIndustrialCraft2();
    crossRailcraft = new CrossRailcraft();
    crossRF = new CrossRF();
    crossClassic = new CrossIndustrialCraft2Classic();

    if (crossClassic.doesIC2ClassicExist()) {
      if (recipes.equalsIgnoreCase("normal-force")) {
        logger.info("Loading normal recipes with IC2 Classic may prevent certain recipes working");
        RecipesNew.addRecipes();
      } else if (recipes.equalsIgnoreCase("gregtech-force")) {
        logger.info(
            "Loading Gregtech recipes with IC2 Classic will prevent certain recipes working");
        GregtechRecipes.addRecipes();
      } else {
        RecipesOld.addOldRecipes();
      }
    } else if (recipes.equalsIgnoreCase("old")) {
      RecipesOld.addOldRecipes();
    } else if (recipes.equalsIgnoreCase("gregtech") || recipes.equalsIgnoreCase("gregtech5")) {
      GregtechRecipes.addRecipes();
      logger.info("Hard... I mean, FUN recipes turned on! Have fun!");
    } else {
      RecipesNew.addRecipes();
    }
    /*
    //I thought about doing this, but I didn't :P
    ItemStack dBlock = new ItemStack(Blocks.diamond_block);
    dBlock.setStackDisplayName("ERROR: report to skyboy!");
    Recipes.advRecipes.addRecipe(dBlock, new Object[]{
    	"GGG", "GGG", "GGG",
    		'G', "greggy_greg_do_please_kindly_stuff_a_sock_in_it"});*/
  }