@Override
  public void loadConfig() {
    ModUtil.LOGGER.info("Initializing Not Enough Items Plugin...");

    API.registerGuiOverlay(GuiCrafter.class, "crafting");
    API.registerGuiOverlayHandler(GuiCrafter.class, new DefaultOverlayHandler(), "crafting");

    NEICrusherRecipe crusherRecipe = new NEICrusherRecipe();
    API.registerRecipeHandler(crusherRecipe);
    API.registerUsageHandler(crusherRecipe);

    NEICrusherRecipe.Double crusherDoubleRecipe = new NEICrusherRecipe.Double();
    API.registerRecipeHandler(crusherDoubleRecipe);
    API.registerUsageHandler(crusherDoubleRecipe);

    NEIFurnaceDoubleRecipe furnaceDoubleRecipe = new NEIFurnaceDoubleRecipe();
    API.registerRecipeHandler(furnaceDoubleRecipe);
    API.registerUsageHandler(furnaceDoubleRecipe);

    NEIHairyBallRecipe ballRecipe = new NEIHairyBallRecipe();
    API.registerRecipeHandler(ballRecipe);
    API.registerUsageHandler(ballRecipe);

    NEITreasureChestRecipe treasureChestRecipe = new NEITreasureChestRecipe();
    API.registerRecipeHandler(treasureChestRecipe);
    API.registerUsageHandler(treasureChestRecipe);

    NEICompostRecipe compostRecipe = new NEICompostRecipe();
    API.registerRecipeHandler(compostRecipe);
    API.registerUsageHandler(compostRecipe);

    NEICoffeeMachineRecipe coffeeMachineRecipe = new NEICoffeeMachineRecipe();
    API.registerRecipeHandler(coffeeMachineRecipe);
    API.registerUsageHandler(coffeeMachineRecipe);

    NEIReconstructorRecipe reconstructorRecipe = new NEIReconstructorRecipe();
    API.registerRecipeHandler(reconstructorRecipe);
    API.registerUsageHandler(reconstructorRecipe);

    NEIBookletRecipe bookletRecipe = new NEIBookletRecipe();
    API.registerRecipeHandler(bookletRecipe);
    API.registerUsageHandler(bookletRecipe);

    API.hideItem(new ItemStack(InitBlocks.blockRice));
    API.hideItem(new ItemStack(InitBlocks.blockCanola));
    API.hideItem(new ItemStack(InitBlocks.blockFlax));
    API.hideItem(new ItemStack(InitBlocks.blockCoffee));
    API.hideItem(new ItemStack(InitBlocks.blockWildPlant, 1, Util.WILDCARD));
    API.hideItem(new ItemStack(InitBlocks.blockColoredLampOn, 1, Util.WILDCARD));
  }
Esempio n. 2
0
  @Override
  public void loadConfig() {
    API.registerGuiOverlay(GuiPetrifiedWorkbench.class, "crafting");
    API.registerGuiOverlayHandler(
        GuiPetrifiedWorkbench.class, new DefaultOverlayHandler(), "crafting");

    API.registerRecipeHandler(new OfferingAltarNEIHandler());
    API.registerUsageHandler(new OfferingAltarNEIHandler());

    API.registerRecipeHandler(new SmoothieMakerNEIHandler());
    API.registerUsageHandler(new SmoothieMakerNEIHandler());

    API.hideItem(new ItemStack(ModBlocks.portal));
    API.hideItem(new ItemStack(ModBlocks.blockTurnip));
    API.hideItem(new ItemStack(ModBlocks.insectRepellent));
    API.hideItem(new ItemStack(ModBlocks.flowerPlanted, 1, OreDictionary.WILDCARD_VALUE));
    API.hideItem(new ItemStack(ModBlocks.honeyBlock));
    API.hideItem(new ItemStack(ModBlocks.bambooShoot));
    API.hideItem(new ItemStack(ModBlocks.slidingBlockPuzzle));
    API.hideItem(new ItemStack(ModBlocks.completedPuzzle));
    API.hideItem(new ItemStack(ModBlocks.anthillBlock));
    API.hideItem(new ItemStack(ModBlocks.anthillStairs));
    API.hideItem(new ItemStack(ModBlocks.soldierAntTrap));
    API.hideItem(new ItemStack(ModBlocks.puffShroom));
    API.hideItem(new ItemStack(ModBlocks.forceLock));
    API.hideItem(ItemMaterials.DATA.FORCE_KEY.makeStack());

    if (!OreType.ALUMINIUM.isEnabled()) {
      API.hideItem(new ItemStack(ModBlocks.oreAluminium));
      API.hideItem(ItemMaterials.DATA.INGOT_ALUMINIUM.makeStack());
    }
    if (!OreType.COPPER.isEnabled()) {
      API.hideItem(new ItemStack(ModBlocks.oreCopper));
      API.hideItem(ItemMaterials.DATA.INGOT_COPPER.makeStack());
    }
    if (!OreType.LEAD.isEnabled()) {
      API.hideItem(new ItemStack(ModBlocks.oreLead));
      API.hideItem(ItemMaterials.DATA.INGOT_LEAD.makeStack());
    }
    if (!OreType.SILVER.isEnabled()) {
      API.hideItem(new ItemStack(ModBlocks.oreSilver));
      API.hideItem(ItemMaterials.DATA.INGOT_SILVER.makeStack());
    }
    if (!OreType.TIN.isEnabled()) {
      API.hideItem(new ItemStack(ModBlocks.oreTin));
      API.hideItem(ItemMaterials.DATA.INGOT_TIN.makeStack());
    }

    API.hideItem(new ItemStack(ModBlocks.hanger));

    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkMain));
    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkDown1));
    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkDown2));
    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkDown3));
    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkN1));
    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkS1));
    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkNS2));
    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkW1));
    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkE1));
    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkWE2));
    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkN3));
    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkS3));
    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkW3));
    API.hideItem(new ItemStack(ModBlocks.glowshroomStalkE3));

    for (Block block : ModBlocks.BLOCKS)
      if (block instanceof BlockDoorErebus) API.hideItem(new ItemStack(block));
  }