本文整理汇总了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());
}
示例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));
}
示例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() );
}
示例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));
}
示例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());
}
示例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());
}
示例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());
}
示例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));
}
}
示例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");
}
示例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);
}
};
}
});*/
}
示例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)));
}
示例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);
}
示例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));
}
示例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));
}
示例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());
}