本文整理汇总了Java中thaumcraft.api.crafting.InfusionRecipe.getRecipeInput方法的典型用法代码示例。如果您正苦于以下问题:Java InfusionRecipe.getRecipeInput方法的具体用法?Java InfusionRecipe.getRecipeInput怎么用?Java InfusionRecipe.getRecipeInput使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类thaumcraft.api.crafting.InfusionRecipe
的用法示例。
在下文中一共展示了InfusionRecipe.getRecipeInput方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ResearchPage
import thaumcraft.api.crafting.InfusionRecipe; //导入方法依赖的package包/类
/**
* @param recipe
* an infusion crafting recipe.
*/
public ResearchPage(InfusionRecipe recipe) {
this.type = PageType.INFUSION_CRAFTING;
this.recipe = recipe;
if (recipe.getRecipeOutput() instanceof ItemStack) {
this.recipeOutput = (ItemStack) recipe.getRecipeOutput();
}
else {
this.recipeOutput = recipe.getRecipeInput();
}
}
示例2: ResearchPage
import thaumcraft.api.crafting.InfusionRecipe; //导入方法依赖的package包/类
/**
* @param recipe an infusion crafting recipe.
*/
public ResearchPage(InfusionRecipe recipe) {
this.type = PageType.INFUSION_CRAFTING;
this.recipe = recipe;
if (recipe.getRecipeOutput() instanceof ItemStack) {
this.recipeOutput = (ItemStack) recipe.getRecipeOutput();
} else {
this.recipeOutput = recipe.getRecipeInput();
}
}
示例3: ResearchPage
import thaumcraft.api.crafting.InfusionRecipe; //导入方法依赖的package包/类
/**
* @param recipe an infusion crafting recipe.
*/
public ResearchPage(InfusionRecipe recipe)
{
this.type = PageType.INFUSION_CRAFTING;
this.recipe = recipe;
if(recipe.getRecipeOutput() instanceof ItemStack)
{
this.recipeOutput = (ItemStack) recipe.getRecipeOutput();
}
else
{
this.recipeOutput = recipe.getRecipeInput();
}
}
示例4: ResearchPage
import thaumcraft.api.crafting.InfusionRecipe; //导入方法依赖的package包/类
/**
* @param recipe an infusion crafting recipe.
*/
public ResearchPage(InfusionRecipe recipe) {
this.type = PageType.INFUSION_CRAFTING;
this.recipe = recipe;
if (recipe.getRecipeOutput() instanceof ItemStack) {
this.recipeOutput = (ItemStack) recipe.getRecipeOutput();
} else {
this.recipeOutput = recipe.getRecipeInput();
}
}
示例5: checkDupe
import thaumcraft.api.crafting.InfusionRecipe; //导入方法依赖的package包/类
private boolean checkDupe(InfusionRecipe recipe) {
for (Object o : this.arecipes.toArray()){
if (o instanceof CachedInfusionRecipe){
CachedInfusionRecipe r = (CachedInfusionRecipe) o;
if (r.recipe.getRecipeInput() == recipe.getRecipeInput()){
if (r.recipe.getRecipeOutput().equals(recipe.getRecipeOutput())) {
return false;
}
}
}
}
return true;
}
示例6: ResearchPage
import thaumcraft.api.crafting.InfusionRecipe; //导入方法依赖的package包/类
/**
* @param recipe
* an infusion crafting recipe.
*/
public ResearchPage(InfusionRecipe recipe) {
this.type = PageType.INFUSION_CRAFTING;
this.recipe = recipe;
if (recipe.getRecipeOutput() instanceof ItemStack) {
this.recipeOutput = (ItemStack) recipe.getRecipeOutput();
} else {
this.recipeOutput = recipe.getRecipeInput();
}
}