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


Java ThaumcraftApi.addInfusionCraftingRecipe方法代码示例

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


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

示例1: createFamiliarRecipes

import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
public static InfusionRecipe[] createFamiliarRecipes() {
    List<Aspect> aspects = new ArrayList<Aspect>(Aspect.aspects.values());
    InfusionRecipe[] recipes = new InfusionRecipe[aspects.size()];

    ItemWispEssence itemEssence = (ItemWispEssence) ConfigItems.itemWispEssence;
    ItemStack result;
    for (int i = 0; i < aspects.size(); i++) {
        Aspect aspect = aspects.get(i);
        ItemStack wispyEssence = new ItemStack(itemEssence, 1, 0);
        itemEssence.setAspects(wispyEssence, new AspectList().add(aspect, 2));

        result = new ItemStack(RegisteredItems.itemEtherealFamiliar);
        ItemEtherealFamiliar.setFamiliarAspect(result, aspect);

        recipes[i] = ThaumcraftApi.addInfusionCraftingRecipe(Gadomancy.MODID.toUpperCase() + ".ETHEREAL_FAMILIAR",
                result, 4, new AspectList().add(aspect, 10).add(Aspect.AURA, 12).add(Aspect.MAGIC, 18), new ItemStack(ConfigItems.itemAmuletRunic, 1, 0),
                new ItemStack[] { wispyEssence, new ItemStack(ConfigItems.itemResource, 1, 14), new ItemStack(ConfigItems.itemResource, 1, 1), wispyEssence, new ItemStack(ConfigItems.itemResource, 1, 14), new ItemStack(ConfigItems.itemResource, 1, 1) });
    }
    return recipes;
}
 
开发者ID:makeoo,项目名称:Gadomancy,代码行数:21,代码来源:RegisteredRecipes.java

示例2: registerCrafting

import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
@Override
protected void registerCrafting( final CommonDependantItems cdi )
{
	// My items
	ItemStack DiffusionCore = ThEApi.instance().items().DiffusionCore.getStack();
	ItemStack CoalescenceCore = ThEApi.instance().items().CoalescenceCore.getStack();
	ItemStack EssentiaProvider = ThEApi.instance().blocks().EssentiaProvider.getStack();

	// Set Essentia Provider aspects
	AspectList essentiaProviderList = new AspectList();
	essentiaProviderList.add( Aspect.MECHANISM, 64 );
	essentiaProviderList.add( Aspect.MAGIC, 32 );
	essentiaProviderList.add( Aspect.ORDER, 32 );
	essentiaProviderList.add( Aspect.EXCHANGE, 16 );

	// Essentia Provider recipe
	ItemStack[] recipeEssentiaProvider = { cdi.FilterTube, cdi.SalisMundus, CoalescenceCore, cdi.WaterShard, cdi.FilterTube, cdi.SalisMundus,
					DiffusionCore, cdi.WaterShard };

	// Register Essentia Provider
	RecipeRegistry.BLOCK_ESSENTIA_PROVIDER = ThaumcraftApi.addInfusionCraftingRecipe( this.researchKey,
		EssentiaProvider, 3, essentiaProviderList, cdi.MEInterface, recipeEssentiaProvider );
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:24,代码来源:FeatureEssentiaProvider.java

示例3: registerCrafting

import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
@Override
protected void registerCrafting( final CommonDependantItems cdi )
{
	// My items
	ItemStack CoalescenceCore = ThEApi.instance().items().CoalescenceCore.getStack();
	ItemStack InfusionProvider = ThEApi.instance().blocks().InfusionProvider.getStack();

	// Set required aspects for infusion provider
	AspectList infusionProviderList = new AspectList();
	infusionProviderList.add( Aspect.MECHANISM, 64 );
	infusionProviderList.add( Aspect.MAGIC, 32 );
	infusionProviderList.add( Aspect.ORDER, 32 );
	infusionProviderList.add( Aspect.EXCHANGE, 16 );

	// Infusion provider recipe items
	ItemStack[] infusionProviderRecipeItems = { cdi.EssentiaMirror, cdi.SalisMundus, CoalescenceCore, cdi.AirShard, cdi.EssentiaMirror,
					cdi.SalisMundus, CoalescenceCore, cdi.AirShard };

	// Create the infusion provider recipe
	RecipeRegistry.BLOCK_INFUSION_PROVIDER = ThaumcraftApi.addInfusionCraftingRecipe( this.researchKey,
		InfusionProvider, 4, infusionProviderList, cdi.MEInterface, infusionProviderRecipeItems );
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:23,代码来源:FeatureInfusionProvider.java

示例4: registerInfusionRecipe

import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
private static void registerInfusionRecipe(String name, String research, Object output, int instability,
                                           AspectList aspects, ItemStack input, ItemStack... ingredients) {
    InfusionRecipe recipe = ThaumcraftApi.addInfusionCraftingRecipe(research, output, instability, aspects, input, ingredients);
    if (name == null || name.length() <= 0) {
        ModResearch.addRecipe(research, recipe);
    }
    else {
        ModResearch.addRecipe(name, recipe);
    }
}
 
开发者ID:Aurilux,项目名称:Xth-uoth,代码行数:11,代码来源:ModRecipes.java

示例5: initRecipes

import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
private static void initRecipes() {
	ThaumcraftApi.addInfusionCraftingRecipe(Names.Research.FIRE, (new ItemStack(ModItems.aspectFire)), 50, new AspectList().add(Aspect.FIRE, 6).add(Aspect.MAGIC, 1), (new ItemStack(Items.diamond)), new ItemStack[]{
		new ItemStack(ThaumcraftItems.ingotThaumium())
	});
}
 
开发者ID:Brandomine,项目名称:Augury,代码行数:6,代码来源:Recipes.java

示例6: registerCrafting

import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
@Override
protected void registerCrafting( final CommonDependantItems cdi )
{
	// Thaumcraft items
	ItemStack CraftingScepter = VisCraftingHelper.INSTANCE.getCraftingScepter();

	// My Items
	ItemStack KnowledgeCore = ThEApi.instance().items().KnowledgeCore.getStack();
	ItemStack KnowledgeInscriber = ThEApi.instance().blocks().KnowledgeInscriber.getStack();
	ItemStack ArcaneAssembler = ThEApi.instance().blocks().ArcaneAssembler.getStack();
	ArcaneAssembler.setTagCompound( TileArcaneAssembler.getCraftTag() );

	// Knowledge Core
	AspectList kCoreAspects = new AspectList();

	// Set KC crafting aspects
	kCoreAspects.add( Aspect.WATER, 3 );
	kCoreAspects.add( Aspect.ORDER, 3 );
	kCoreAspects.add( Aspect.EARTH, 1 );

	// Set KC recipe
	Object[] kCoreRecipe = new Object[] { "VLV", "LZL", "VCV", 'V', cdi.VibrantGlass, 'L', cdi.VanillaLapis, 'Z', cdi.ZombieBrain, 'C',
					cdi.CalculationProcessor };

	// Register KC
	RecipeRegistry.ITEM_KNOWLEDGE_CORE = ThaumcraftApi.addArcaneCraftingRecipe( this.researchKey,
		KnowledgeCore, kCoreAspects, kCoreRecipe );

	// Knowledge Inscriber
	AspectList kiAspects = new AspectList();

	// Set KI crafting aspects
	kiAspects.add( Aspect.WATER, 5 );
	kiAspects.add( Aspect.ORDER, 5 );
	kiAspects.add( Aspect.EARTH, 5 );
	kiAspects.add( Aspect.ENTROPY, 5 );
	kiAspects.add( Aspect.FIRE, 5 );
	kiAspects.add( Aspect.AIR, 5 );

	// Set KI recipe
	Object[] kiRecipe = new Object[] { "IPI", " T ", "ILI", 'I', cdi.IronIngot, 'P', cdi.IlluminatedPanel, 'T', cdi.Thaumonomicon, 'L',
					cdi.LogicProcessor };

	// Register KI
	RecipeRegistry.BLOCK_KNOWLEDGE_INSCRIBER = ThaumcraftApi.addArcaneCraftingRecipe( this.researchKey,
		KnowledgeInscriber, kiAspects, kiRecipe );

	// Arcane Assembler
	AspectList assemblerAspects = new AspectList();

	// Set Assembler crafting aspects
	assemblerAspects.add( Aspect.CRAFT, 64 );
	assemblerAspects.add( Aspect.EXCHANGE, 32 );
	assemblerAspects.add( Aspect.AURA, 16 );
	assemblerAspects.add( Aspect.MAGIC, 16 );
	assemblerAspects.add( Aspect.METAL, 8 );
	assemblerAspects.add( Aspect.CRYSTAL, 8 );

	// Set Assembler recipe
	ItemStack[] assemblerRecipe = { CraftingScepter, cdi.AirShard, cdi.EarthShard, cdi.WaterShard, cdi.BallanceShard, cdi.OrderShard,
					cdi.EntropyShard, cdi.FireShard };

	// Register Assembler
	RecipeRegistry.BLOCK_ARCANE_ASSEMBLER = ThaumcraftApi.addInfusionCraftingRecipe( this.researchKey,
		ArcaneAssembler, 7, assemblerAspects, cdi.MolecularAssembler, assemblerRecipe );
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:67,代码来源:FeatureAutocrafting_Arcane.java

示例7: registerResearchItemInfused

import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
private static void registerResearchItemInfused(String name, Object output, int instability, AspectList aspects, ItemStack input, ItemStack... stuff) {
        InfusionRecipe recipe = ThaumcraftApi.addInfusionCraftingRecipe(name, output, instability, aspects, input, stuff);
        recipes.put(name, recipe);
}
 
开发者ID:LezChap,项目名称:Thaumic-Tools,代码行数:5,代码来源:ThaumicTools.java


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