Java Code Examples for codechicken.nei.api.API#hideItem()

The following examples show how to use codechicken.nei.api.API#hideItem() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NEIbartworksConfig.java    From bartworks with MIT License 5 votes vote down vote up
@Optional.Method(modid = "NotEnoughItems")
    @Override
    public void loadConfig() {
        API.hideItem(new ItemStack(ItemRegistry.TAB));
        API.hideItem(new ItemStack(FluidLoader.bioFluidBlock));
        API.hideItem(new ItemStack(ItemRegistry.bw_fake_glasses));
        ItemStack[] prefixesToHide = {
                WerkstoffLoader.getCorrespondingItemStack(OrePrefixes.dustTiny, WerkstoffLoader.Bismutite).copy(),
                WerkstoffLoader.getCorrespondingItemStack(OrePrefixes.dustSmall, WerkstoffLoader.Bismutite).copy(),
                WerkstoffLoader.getCorrespondingItemStack(OrePrefixes.crushed, WerkstoffLoader.Bismutite).copy(),
                WerkstoffLoader.getCorrespondingItemStack(OrePrefixes.crushedPurified, WerkstoffLoader.Bismutite).copy(),
                WerkstoffLoader.getCorrespondingItemStack(OrePrefixes.crushedCentrifuged, WerkstoffLoader.Bismutite).copy(),
                WerkstoffLoader.getCorrespondingItemStack(OrePrefixes.nugget, WerkstoffLoader.Bismutite).copy(),
                WerkstoffLoader.getCorrespondingItemStack(OrePrefixes.gemChipped, WerkstoffLoader.Bismutite).copy(),
                WerkstoffLoader.getCorrespondingItemStack(OrePrefixes.gemFlawed, WerkstoffLoader.Bismutite).copy(),
                WerkstoffLoader.getCorrespondingItemStack(OrePrefixes.gemFlawless, WerkstoffLoader.Bismutite).copy(),
                WerkstoffLoader.getCorrespondingItemStack(OrePrefixes.gemExquisite, WerkstoffLoader.Bismutite).copy(),
                WerkstoffLoader.getCorrespondingItemStack(OrePrefixes.dustImpure, WerkstoffLoader.Bismutite).copy(),
                WerkstoffLoader.getCorrespondingItemStack(OrePrefixes.dustPure, WerkstoffLoader.Bismutite).copy(),
        };
        for (ItemStack stack : prefixesToHide) {
            stack.setItemDamage(Short.MAX_VALUE);
            API.hideItem(stack);
        }
//        for (int i = 0; i < Short.MAX_VALUE; i++) {
//            API.addItemListEntry(new ItemStack(WerkstoffLoader.BWOres,1,i));
//        }
    }
 
Example 2
Source File: NEI_BW_Config.java    From bartworks with MIT License 5 votes vote down vote up
public void loadConfig() {
    API.hideItem(new ItemStack(ItemRegistry.TAB));
    API.hideItem(new ItemStack(FluidLoader.bioFluidBlock));
    API.hideItem(new ItemStack(ItemRegistry.bw_fake_glasses));
    NEI_BW_Config.sIsAdded = false;
    new BW_NEI_OreHandler();
    new BW_NEI_BioVatHandler(BWRecipes.instance.getMappingsFor(BWRecipes.BACTERIALVATBYTE));
    new BW_NEI_BioLabHandler(BWRecipes.instance.getMappingsFor(BWRecipes.BIOLABBYTE));
    NEI_BW_Config.sIsAdded = true;
}
 
Example 3
Source File: NEIGTNewHorizonsConfig.java    From NewHorizonsCoreMod with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void loadConfig()
{
    API.hideItem(new ItemStack(QuantumBread.Instance()));
    // Hide metaID 0, as this is the generic item for trash bags
    MainRegistry.Logger.info("Added NEI Config");
}
 
Example 4
Source File: NEIEtFuturumConfig.java    From Et-Futurum with The Unlicense 5 votes vote down vote up
@Override
public void loadConfig() {
	if (EtFuturum.enableBanners) {
		API.registerRecipeHandler(new BannerPatternHandler());
		API.registerUsageHandler(new BannerPatternHandler());
	}

	if (EtFuturum.enableBeetroot)
		API.hideItem(new ItemStack(ModBlocks.beetroot));
}
 
Example 5
Source File: NEIChiselConfig.java    From Chisel-2 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void loadConfig() {
	API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "limestone_slab_top")));
	API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "marble_slab_top")));
	API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "marble_pillar_slab_top")));

	RecipeHandlerChisel handler = new RecipeHandlerChisel();
	API.registerRecipeHandler(handler);
	API.registerUsageHandler(handler);
	API.setGuiOffset(GuiChisel.class, -50, 40);
}
 
Example 6
Source File: NEIInitialization.java    From NotEnoughItems with MIT License 4 votes vote down vote up
private static void hideVanillaItems() {
    API.hideItem(new ItemStack(Blocks.FARMLAND));
    API.hideItem(new ItemStack(Blocks.LIT_FURNACE));
}
 
Example 7
Source File: NEIEnderStorageConfig.java    From EnderStorage with MIT License 4 votes vote down vote up
@Override
public void loadConfig()
{
    if(EnderStorage.disableVanillaEnderChest)
        API.hideItem(new ItemStack(Blocks.ender_chest));
}
 
Example 8
Source File: TranslocatorProxy.java    From Translocators with MIT License 4 votes vote down vote up
public void init() {
    blockTranslocator = new BlockTranslocator();
    blockTranslocator.setBlockName("translocator").setCreativeTab(CreativeTabs.tabRedstone);
    blockCraftingGrid = new BlockCraftingGrid();
    blockCraftingGrid.setBlockName("craftingGrid");
    blockCraftingGrid.setBlockTextureName("planks_oak");

    itemDiamondNugget = new Item()
            .setUnlocalizedName("translocator:diamondNugget").setTextureName("translocator:diamondNugget")
            .setCreativeTab(CreativeTabs.tabMaterials);
    GameRegistry.registerItem(itemDiamondNugget, "diamondNugget");
    OreDictionary.registerOre("nuggetDiamond", itemDiamondNugget);

    GameRegistry.registerBlock(blockTranslocator, ItemTranslocator.class, "translocator");
    GameRegistry.registerBlock(blockCraftingGrid, "craftingGrid");
    MinecraftForge.EVENT_BUS.register(blockTranslocator);
    MinecraftForge.EVENT_BUS.register(blockCraftingGrid);

    GameRegistry.registerTileEntity(TileItemTranslocator.class, "itemTranslocator");
    GameRegistry.registerTileEntity(TileLiquidTranslocator.class, "liquidTranslocator");
    GameRegistry.registerTileEntity(TileCraftingGrid.class, "craftingGrid");

    PacketCustom.assignHandler(TranslocatorSPH.channel, new TranslocatorSPH());

    GameRegistry.addRecipe(new ItemStack(blockTranslocator, 2, 0),
            "rer",
            "ipi",
            "rgr",
            'r', Items.redstone,
            'e', Items.ender_pearl,
            'i', Items.iron_ingot,
            'g', Items.gold_ingot,
            'p', Blocks.piston);
    GameRegistry.addRecipe(new ItemStack(blockTranslocator, 2, 1),
            "rer",
            "ipi",
            "rlr",
            'r', Items.redstone,
            'e', Items.ender_pearl,
            'i', Items.iron_ingot,
            'l', new ItemStack(Items.dye, 1, 4),
            'p', Blocks.piston);
    API.hideItem(new ItemStack(blockCraftingGrid));

    GameRegistry.addShapelessRecipe(new ItemStack(Items.diamond),
            itemDiamondNugget, itemDiamondNugget, itemDiamondNugget,
            itemDiamondNugget, itemDiamondNugget, itemDiamondNugget,
            itemDiamondNugget, itemDiamondNugget, itemDiamondNugget);

    GameRegistry.addShapelessRecipe(new ItemStack(itemDiamondNugget, 9), Items.diamond);
}
 
Example 9
Source File: NEIPluginInitConfig.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void loadConfig(){

    Log.info("Initializing " + getName() + "...");

    registerHandler(new NEIPressureChamberRecipeManager());
    registerHandler(new NEIAssemblyControllerRecipeManager());
    registerHandler(new NEIThermopneumaticProcessingPlantManager());
    registerHandler(new NEIRefineryManager());
    registerHandler(new NEIEtchingAcidManager());
    registerHandler(new NEIUVLightBoxManager());
    registerHandler(new NEIAmadronTradeManager());
    registerHandler(new NEIPlasticMixerManager());

    GuiContainerManager.addDrawHandler(new ItemDrawHandler());

    //handle drop down windows
    /* MultiItemRange tubes = new MultiItemRange();
     tubes.add(Blockss.pressureTube, 0, BlockPressureTube.PRESSURE_TUBES_AMOUNT);
     tubes.add(Blockss.advancedPressureTube, 0, BlockPressureTube.PRESSURE_TUBES_AMOUNT);
     API.addSetRange("Mod.PneumaticCraft.Pressure Tubes", tubes);

     MultiItemRange upgrades = new MultiItemRange();
     upgrades.add(Itemss.machineUpgrade, 0, ItemMachineUpgrade.UPGRADES_AMOUNT);
     API.addSetRange("Mod.PneumaticCraft.Machine Upgrades", upgrades);*/

    API.hideItem(new ItemStack(Blockss.burstPlant));
    API.hideItem(new ItemStack(Blockss.chopperPlant));
    API.hideItem(new ItemStack(Blockss.creeperPlant));
    API.hideItem(new ItemStack(Blockss.enderPlant));
    API.hideItem(new ItemStack(Blockss.fireFlower));
    API.hideItem(new ItemStack(Blockss.flyingFlower));
    API.hideItem(new ItemStack(Blockss.heliumPlant));
    API.hideItem(new ItemStack(Blockss.lightningPlant));
    API.hideItem(new ItemStack(Blockss.potionPlant));
    API.hideItem(new ItemStack(Blockss.propulsionPlant));
    API.hideItem(new ItemStack(Blockss.rainPlant));
    API.hideItem(new ItemStack(Blockss.repulsionPlant));
    API.hideItem(new ItemStack(Blockss.slimePlant));
    API.hideItem(new ItemStack(Blockss.squidPlant));
    API.hideItem(new ItemStack(Blockss.droneRedstoneEmitter));
}