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


Java CrucibleRecipe.getRecipeOutput方法代码示例

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


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

示例1: scan

import thaumcraft.api.crafting.CrucibleRecipe; //导入方法依赖的package包/类
@Override
public void scan() {
    for (Object r : ThaumcraftApi.getCraftingRecipes()) {
        if (r instanceof CrucibleRecipe) {
            CrucibleRecipe crucibleRecipe = (CrucibleRecipe) r;
            ItemStack result = crucibleRecipe.getRecipeOutput();
            Object input = crucibleRecipe.catalyst;

            if (input instanceof ItemStack) {
                addCatalyst(new VanillaStackWrapper(result), (ItemStack)input);
            } else if (input instanceof List<?>) {
                addCatalyst(new VanillaStackWrapper(result), (ItemStack[]) ((List) input).toArray(new ItemStack[((List) input).size()]));
            }
        }
    }
}
 
开发者ID:AgileMods,项目名称:MateriaMuto,代码行数:17,代码来源:ThaumcraftCrucibleScanner.java

示例2: ResearchPage

import thaumcraft.api.crafting.CrucibleRecipe; //导入方法依赖的package包/类
/**
 * @param recipe an alchemy crafting recipe.
 */
public ResearchPage(CrucibleRecipe recipe)
{
    this.type = PageType.CRUCIBLE_CRAFTING;
    this.recipe = recipe;
    this.recipeOutput = recipe.getRecipeOutput();
}
 
开发者ID:J3FF97,项目名称:Steel-Industries,代码行数:10,代码来源:ResearchPage.java

示例3: ResearchPage

import thaumcraft.api.crafting.CrucibleRecipe; //导入方法依赖的package包/类
/**
 * @param recipe
 *        an alchemy crafting recipe.
 */
public ResearchPage(CrucibleRecipe recipe) {
	this.type = PageType.CRUCIBLE_CRAFTING;
	this.recipe = recipe;
	this.recipeOutput = recipe.getRecipeOutput();
}
 
开发者ID:PrincessRTFM,项目名称:TweakCraft,代码行数:10,代码来源:ResearchPage.java

示例4: ResearchPage

import thaumcraft.api.crafting.CrucibleRecipe; //导入方法依赖的package包/类
/**
 * @param recipe an alchemy crafting recipe.
 */
public ResearchPage(CrucibleRecipe recipe) {
	this.type = PageType.CRUCIBLE_CRAFTING;
	this.recipe = recipe;
	this.recipeOutput = recipe.getRecipeOutput();
}
 
开发者ID:Brandomine,项目名称:Augury,代码行数:9,代码来源:ResearchPage.java

示例5: ResearchPage

import thaumcraft.api.crafting.CrucibleRecipe; //导入方法依赖的package包/类
/**
 * @param recipe an alchemy crafting recipe.
 */
public ResearchPage(CrucibleRecipe recipe) {
    this.type = PageType.CRUCIBLE_CRAFTING;
    this.recipe = recipe;
    this.recipeOutput = recipe.getRecipeOutput();
}
 
开发者ID:AgileMods,项目名称:MateriaMuto,代码行数:9,代码来源:ResearchPage.java

示例6: CachedCrucibleRecipe

import thaumcraft.api.crafting.CrucibleRecipe; //导入方法依赖的package包/类
public CachedCrucibleRecipe(CrucibleRecipe recipe){
	this.aspects = recipe.aspects;
	this.output = new PositionedStack(recipe.getRecipeOutput(), outCoords[0], outCoords[1]);
	this.recipe = recipe;
	this.inputs = new PositionedStack(recipe.catalyst, inCoords[0], inCoords[1]);
}
 
开发者ID:austinv11,项目名称:Thaumic-NEI,代码行数:7,代码来源:CrucibleHandler.java

示例7: ResearchPage

import thaumcraft.api.crafting.CrucibleRecipe; //导入方法依赖的package包/类
/**
 * @param recipe
 *            an alchemy crafting recipe.
 */
public ResearchPage(CrucibleRecipe recipe) {
	this.type = PageType.CRUCIBLE_CRAFTING;
	this.recipe = recipe;
	this.recipeOutput = recipe.getRecipeOutput();
}
 
开发者ID:jaredlll08,项目名称:MysticalTrinkets,代码行数:10,代码来源:ResearchPage.java


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