当前位置: 首页>>代码示例>>Java>>正文


Java API.hideItem方法代码示例

本文整理汇总了Java中codechicken.nei.api.API.hideItem方法的典型用法代码示例。如果您正苦于以下问题:Java API.hideItem方法的具体用法?Java API.hideItem怎么用?Java API.hideItem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在codechicken.nei.api.API的用法示例。


在下文中一共展示了API.hideItem方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void loadConfig() {
	
	API.hideItem(new ItemStack(InitBlocks.reinforced_door));
	
	for (int i = 0; i < BlockChargedPlant.icons.length; i++) {
		API.hideItem(new ItemStack(InitBlocks.charged_plant, 1, i));
	}
	
	API.registerRecipeHandler(new InfusionTableRecipeHandler());
	API.registerUsageHandler(new InfusionTableRecipeHandler());
	
	API.registerRecipeHandler(new InfusionFoundryRecipeHandler());
	API.registerUsageHandler(new InfusionFoundryRecipeHandler());
	
	API.registerRecipeHandler(new MissileFactoryRecipeHandler());
	API.registerUsageHandler(new MissileFactoryRecipeHandler());
	
	API.registerRecipeHandler(new EnergeticFurnaceRecipeHandler());
	API.registerUsageHandler(new EnergeticFurnaceRecipeHandler());
	
	API.registerRecipeHandler(new OreEnricherRecipeHandler());
	API.registerUsageHandler(new OreEnricherRecipeHandler());
}
 
开发者ID:TeamMonumental,项目名称:FusionWarfare,代码行数:25,代码来源:NEIFusionWarfareConfig.java

示例2: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override public void loadConfig()
{
    API.registerUsageHandler(new AlloyerHandler());
    API.registerRecipeHandler(new AlloyerHandler());

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

    API.registerUsageHandler(new ForgeHandler());
    API.registerRecipeHandler(new ForgeHandler());
    
    API.hideItem(new ItemStack(BlockList.tabBlock));
    API.hideItem(new ItemStack(ItemList.tabItem));
    API.hideItem(new ItemStack(ItemList.tabItem,1,1));
    API.hideItem(new ItemStack(ItemList.tabItem,1,2));
}
 
开发者ID:TeamMetallurgy,项目名称:Metallurgy4,代码行数:17,代码来源:NEIConfig.java

示例3: ModuleNEI

import codechicken.nei.api.API; //导入方法依赖的package包/类
/**
 * Integrates with Not Enough Items
 *
 * @throws Exception
 */
public ModuleNEI() throws Exception
{
	// Register the ACT overlays
	API.registerGuiOverlay( thaumicenergistics.client.gui.GuiArcaneCraftingTerminal.class, "crafting", new ACTSlotPositioner() );

	// Create the regular overlay handler
	ACTOverlayHandler craftingOverlayHandler = new ACTOverlayHandler( false );

	// Create the arcane overlay handler
	ACTOverlayHandler arcaneOverlayHandler = new ACTOverlayHandler( true );

	// Register the handlers
	API.registerGuiOverlayHandler( thaumicenergistics.client.gui.GuiArcaneCraftingTerminal.class, craftingOverlayHandler, "crafting" );
	API.registerGuiOverlayHandler( thaumicenergistics.client.gui.GuiArcaneCraftingTerminal.class, arcaneOverlayHandler, "arcaneshapedrecipes" );
	API.registerGuiOverlayHandler( thaumicenergistics.client.gui.GuiArcaneCraftingTerminal.class, arcaneOverlayHandler,
		"arcaneshapelessrecipes" );

	// Hide the crafting aspect item
	API.hideItem( ItemEnum.CRAFTING_ASPECT.getStack() );

}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:27,代码来源:ModuleNEI.java

示例4: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void loadConfig() {
	if (EtFuturum.enableBanners) {
		API.registerRecipeHandler(new BannerPatternHandler());
		API.registerUsageHandler(new BannerPatternHandler());
	}

	if (EtFuturum.enableBeetroot)
		API.hideItem(new ItemStack(ModBlocks.beetroot));
}
 
开发者ID:jm-organization,项目名称:connor41-etfuturum2,代码行数:11,代码来源:NEIEtFuturumConfig.java

示例5: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void loadConfig()
{
    this.registerRecipes();

    for (Item item : GCItems.hiddenItems)
    {
        API.hideItem(new ItemStack(item, 1, 0));
    }

    for (Block block : GCBlocks.hiddenBlocks)
    {
        API.hideItem(new ItemStack(block, 1, 0));
        if (block == GCBlocks.slabGCDouble)
        {
        	for (int j = 1; j < (GalacticraftCore.isPlanetsLoaded ? 6 : 4); j++)
        		API.hideItem(new ItemStack(block, 1, j));
        }
    }

    API.registerRecipeHandler(new RocketT1RecipeHandler());
    API.registerUsageHandler(new RocketT1RecipeHandler());
    API.registerRecipeHandler(new BuggyRecipeHandler());
    API.registerUsageHandler(new BuggyRecipeHandler());
    API.registerRecipeHandler(new RefineryRecipeHandler());
    API.registerUsageHandler(new RefineryRecipeHandler());
    API.registerRecipeHandler(new CircuitFabricatorRecipeHandler());
    API.registerUsageHandler(new CircuitFabricatorRecipeHandler());
    API.registerRecipeHandler(new IngotCompressorRecipeHandler());
    API.registerUsageHandler(new IngotCompressorRecipeHandler());
    API.registerRecipeHandler(new ElectricIngotCompressorRecipeHandler());
    API.registerUsageHandler(new ElectricIngotCompressorRecipeHandler());
    API.registerHighlightIdentifier(GCBlocks.basicBlock, new GCNEIHighlightHandler());
    API.registerHighlightIdentifier(GCBlocks.blockMoon, new GCNEIHighlightHandler());
    API.registerHighlightIdentifier(GCBlocks.fakeBlock, new GCNEIHighlightHandler());
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:37,代码来源:NEIGalacticraftConfig.java

示例6: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void loadConfig() {
	
	API.hideItem(new ItemStack(InitBlocks.control_panel));
	API.hideItem(new ItemStack(InitBlocks.support_frame));
	API.hideItem(new ItemStack(InitBlocks.fission));
	
	API.registerRecipeHandler(new MissileFactoryRecipeHandler());
}
 
开发者ID:TeamMonumental,项目名称:FissionWarfare,代码行数:10,代码来源:NEIFissionWarfareConfig.java

示例7: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void loadConfig() {
	RMLog.info("Loading NEI for " + RorysGlobal.NAME);
	API.hideItem(new ItemStack(RorysMod.items.laserBolt));

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

	API.registerRecipeHandler(new RoryShapedRecipeHandler());
	API.registerUsageHandler(new RoryShapedRecipeHandler());
}
 
开发者ID:roryclaasen,项目名称:RorysMod,代码行数:12,代码来源:NEIRorysModConfig.java

示例8: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void loadConfig() 
{
	if(Loader.isModLoaded("steamcraft2") && !ConfigSettings.FleshBlockRecipe)
		API.hideItem(new ItemStack(InitBlocks.blockFlesh, 1));
	
	if(Loader.isModLoaded("Steamcraft"))
	{
		API.hideItem(new ItemStack(TFPBlocks.tweakedboiler, 1));
		API.hideItem(new ItemStack(TFPBlocks.tweakedboilerOn, 1));
		API.hideItem(new ItemStack(TFPBlocks.tweakedFlashBoiler, 1));
	}
}
 
开发者ID:StrayWolfe,项目名称:TerrafirmaPunk-Tweaks,代码行数:14,代码来源:NEIConfig.java

示例9: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@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");
}
 
开发者ID:GTNewHorizons,项目名称:NewHorizonsCoreMod,代码行数:8,代码来源:NEIGTNewHorizonsConfig.java

示例10: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void loadConfig()
{
    System.out.println("Load config");
    API.hideItem(new ItemStack(Item.getItemFromBlock(BlockBase.change_block)));
    /*API.addSubset("Toggle Blocks", new ItemFilter()
    {
        @Override
        public boolean matches(ItemStack itemStack)
        {
            return itemStack.getItem() == Item.getItemFromBlock(BlockBase.toggle_controller);
        }
    });*/
    /*API.addItemFilter(new ItemFilter.ItemFilterProvider()
    {
        @Override
        public ItemFilter getFilter()
        {
            return new ItemFilter()
            {
                @Override
                public boolean matches(ItemStack itemStack)
                {
                    return itemStack.getItem() != Item.getItemFromBlock(BlockBase.change_block);
                }
            };
        }
    });*/
}
 
开发者ID:MrSpring,项目名称:ToggleBlocks,代码行数:30,代码来源:NEIToggleConfig.java

示例11: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@Optional.Method(modid="NotEnoughItems")
@Override
public void loadConfig()
{
    LogHelper.info("Adding NEI integration");
    API.hideItem(new ItemStack(Item.getItemFromBlock(ModBlocks.blockQTComponent)));
    API.hideItem(new ItemStack(Item.getItemFromBlock(ModBlocks.blockTextureDummy)));
}
 
开发者ID:M4thG33k,项目名称:M4thThings,代码行数:9,代码来源:NEIM4thThingsConfig.java

示例12: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@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")));

    TemplateRecipeHandler handler = new NEIShapedDifficultyRecipe();
    API.registerRecipeHandler(handler);
    API.registerUsageHandler(handler);
    
    handler = new NEIShapelessDifficultyRecipe();
    API.registerRecipeHandler(handler);
    API.registerUsageHandler(handler);
}
 
开发者ID:tterrag1098,项目名称:DifficultyRecipes,代码行数:16,代码来源:NEIDifficultyRecipesConfig.java

示例13: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void loadConfig()
{
	NEIKilnRecipeHandler kilnRecipeHandler = new NEIKilnRecipeHandler();
	API.registerRecipeHandler(kilnRecipeHandler);
	API.registerUsageHandler(kilnRecipeHandler);

	NEISmelterRecipeHandler smelterRecipeHandler = new NEISmelterRecipeHandler();
	API.registerRecipeHandler(smelterRecipeHandler);
	API.registerUsageHandler(smelterRecipeHandler);

	NEIBrickOvenRecipeHandler brickOvenRecipeHandler = new NEIBrickOvenRecipeHandler();
	API.registerRecipeHandler(brickOvenRecipeHandler);
	API.registerUsageHandler(brickOvenRecipeHandler);

	NEIAdvancedCraftingHandler advancedCraftingHandler = new NEIAdvancedCraftingHandler();
	API.registerRecipeHandler(advancedCraftingHandler);
	API.registerUsageHandler(advancedCraftingHandler);

	NEICampfireRecipeHandler campfireRecipeHandler = new NEICampfireRecipeHandler();
	API.registerRecipeHandler(campfireRecipeHandler);
	API.registerUsageHandler(campfireRecipeHandler);

	API.hideItem(new ItemStack(RegisterBlocks.kilnLit));
	API.hideItem(new ItemStack(RegisterBlocks.brickOvenLit));
	API.hideItem(new ItemStack(RegisterBlocks.smelterLit));
	API.hideItem(new ItemStack(RegisterBlocks.obsidianKilnLit));
	API.hideItem(new ItemStack(RegisterBlocks.netherBrickOvenLit));
	API.hideItem(new ItemStack(RegisterBlocks.enderSmelterLit));

	API.hideItem(new ItemStack(RegisterBlocks.campfireLit));
}
 
开发者ID:einsteinsci,项目名称:betterbeginnings-MC1.7,代码行数:33,代码来源:NEIConfig.java

示例14: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void loadConfig() {
	TemplateNEI precAss = new PrecisionAssemberNEI();
	TemplateNEI blastFurnace = new BlastFurnaceNEI();
	TemplateNEI crystallizer = new CrystallizerNEI();
	TemplateNEI cuttingMachine = new CuttingMachineNEI();
	TemplateNEI lathe = new LatheNEI();
	TemplateNEI rollingMachine = new RollingMachineNEI();
	TemplateNEI smallPlatePress = new PlatePresserNEI();
	TemplateNEI electrolyser = new ElectrolyserNEI();
	TemplateNEI chemReactor = new ChemicalReactorNEI();
	
	API.registerRecipeHandler(lathe);
	API.registerUsageHandler(lathe);
	API.registerRecipeHandler(precAss);
	API.registerUsageHandler(precAss);
	API.registerRecipeHandler(blastFurnace);
	API.registerUsageHandler(blastFurnace);
	API.registerRecipeHandler(crystallizer);
	API.registerUsageHandler(crystallizer);
	API.registerRecipeHandler(cuttingMachine);
	API.registerUsageHandler(cuttingMachine);
	API.registerRecipeHandler(rollingMachine);
	API.registerUsageHandler(rollingMachine);
	API.registerRecipeHandler(smallPlatePress);
	API.registerUsageHandler(smallPlatePress);
	API.registerRecipeHandler(electrolyser);
	API.registerUsageHandler(electrolyser);
	API.registerRecipeHandler(chemReactor);
	API.registerUsageHandler(chemReactor);
	
	API.hideItem(new ItemStack(AdvancedRocketryBlocks.blockQuartzCrucible));
	API.hideItem(new ItemStack(AdvancedRocketryItems.itemSatellite));
	API.hideItem(new ItemStack(AdvancedRocketryBlocks.blockLightSource));
}
 
开发者ID:zmaster587,项目名称:AdvancedRocketry,代码行数:36,代码来源:NEIAdvancedRocketryConfig.java

示例15: loadConfig

import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void loadConfig() {
    API.hideItem(new ItemStack(BlockRegistry.containmentBarrier));
    API.hideItem(new ItemStack(BlockRegistry.wandMakerLit));
    API.hideItem(new ItemStack(BlockRegistry.merlinscircle));
    API.hideItem(new ItemStack(ItemRegistry.wand));
    API.registerRecipeHandler(new WandCarverHandler());
    API.registerUsageHandler(new WandCarverHandler());
    API.registerRecipeHandler(new MysticAnvilHandler());
    API.registerUsageHandler(new MysticAnvilHandler());
}
 
开发者ID:MagiciansArtificeTeam,项目名称:Magicians-Artifice,代码行数:12,代码来源:NEIConfig.java


注:本文中的codechicken.nei.api.API.hideItem方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。