thaumcraft.api.crafting.InfusionRecipe Java Examples

The following examples show how to use thaumcraft.api.crafting.InfusionRecipe. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ThaumcraftApi.java    From GardenCollection with MIT License 5 votes vote down vote up
/**
 * @param stack the recipe result
 * @return the recipe
 */
public static InfusionRecipe getInfusionRecipe(ItemStack res) {
	for (Object r:getCraftingRecipes()) {
		if (r instanceof InfusionRecipe) {
			if (((InfusionRecipe)r).getRecipeOutput() instanceof ItemStack) {
				if (((ItemStack) ((InfusionRecipe)r).getRecipeOutput()).isItemEqual(res))
					return (InfusionRecipe)r;
			} 
		}
	}
	return null;
}
 
Example #2
Source File: ThaumcraftApi.java    From PneumaticCraft with GNU General Public License v3.0 5 votes vote down vote up
/**
 * @param stack the recipe result
 * @return the recipe
 */
public static InfusionRecipe getInfusionRecipe(ItemStack res) {
	for (Object r:getCraftingRecipes()) {
		if (r instanceof InfusionRecipe) {
			if (((InfusionRecipe)r).getRecipeOutput() instanceof ItemStack) {
				if (((ItemStack) ((InfusionRecipe)r).getRecipeOutput()).isItemEqual(res))
					return (InfusionRecipe)r;
			} 
		}
	}
	return null;
}
 
Example #3
Source File: ResearchPage.java    From PneumaticCraft with GNU General Public License v3.0 5 votes vote down vote up
/**
 * @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();
	}
}
 
Example #4
Source File: ThaumcraftApi.java    From ForbiddenMagic with Do What The F*ck You Want To Public License 5 votes vote down vote up
/**
 * @param stack the recipe result
 * @return the recipe
 */
public static InfusionRecipe getInfusionRecipe(ItemStack res) {
	for (Object r:getCraftingRecipes()) {
		if (r instanceof InfusionRecipe) {
			if (((InfusionRecipe)r).getRecipeOutput() instanceof ItemStack) {
				if (((ItemStack) ((InfusionRecipe)r).getRecipeOutput()).isItemEqual(res))
					return (InfusionRecipe)r;
			} 
		}
	}
	return null;
}
 
Example #5
Source File: ResearchPage.java    From ForbiddenMagic with Do What The F*ck You Want To Public License 5 votes vote down vote up
/**
 * @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();
	}
}
 
Example #6
Source File: ForbiddenResearch.java    From ForbiddenMagic with Do What The F*ck You Want To Public License 5 votes vote down vote up
public static void addTaint() {
    (new DarkResearchItem("TAINTSHOVEL", "FORBIDDEN", (new AspectList()).add(Aspect.CRYSTAL, 3).add(Aspect.TAINT, 2).add(Aspect.TOOL, 1), -8, 1, 2, new ItemStack(ForbiddenItems.taintShovel))).setPages(new ResearchPage[] { new ResearchPage("forbidden.research_page.TAINTSHOVEL.1"), new ResearchPage((InfusionRecipe) recipes.get("TaintShovel")), new ResearchPage("forbidden.research_page.TAINTSHOVEL.2") }).setParents(new String[] { "THAUMIUM", "INFUSION", "ETHEREALBLOOM" }).setConcealed().registerResearchItem();
    (new DarkResearchItem("TAINTPICK", "FORBIDDEN", (new AspectList()).add(Aspect.TOOL, 2).add(Aspect.TAINT, 4).add(Aspect.ENTROPY, 3), -10, 1, 2, new ItemStack(ForbiddenItems.taintPickaxe))).setPages(new ResearchPage[] { new ResearchPage("forbidden.research_page.TAINTPICK.1"), new ResearchPage((InfusionRecipe) recipes.get("TaintPick")) }).setParents(new String[] { "THAUMIUM", "INFUSION" }).setConcealed().registerResearchItem();
    (new DarkResearchItem("ROD_tainted", "FORBIDDEN", (new AspectList()).add(Aspect.MAGIC, 4).add(Aspect.TAINT, 5).add(Aspect.TOOL, 2), -8, 3, 3, new ItemStack(ForbiddenItems.wandCore, 1, 0))).setPages(new ResearchPage[] { new ResearchPage("forbidden.research_page.ROD_tainted.1"), new ResearchPage((InfusionRecipe) recipes.get("WandRodTainted")) }).setParents(new String[] { "ROD_silverwood", "TAINTSHOVEL", "INFUSION" }).setConcealed().registerResearchItem();
    (new DarkResearchItem("TAINTTREE", "FORBIDDEN", (new AspectList()).add(Aspect.TREE, 4).add(Aspect.TAINT, 6).add(Aspect.POISON, 2).add(Aspect.PLANT, 3), -11, 3, 3, new ItemStack(ForbiddenBlocks.taintSapling))).setPages(new ResearchPage[] { new ResearchPage("forbidden.research_page.TAINTTREE.1"), new ResearchPage((CrucibleRecipe) recipes.get("TaintTree")), new ResearchPage((IRecipe) recipes.get("TaintPlank")), new ResearchPage(new ItemStack(ForbiddenBlocks.taintLog, 1, 0)) }).setParents(new String[]{"THAUMIUM", "INFUSION", "ETHEREALBLOOM"}).setConcealed().registerResearchItem();
    ThaumcraftApi.addWarpToResearch("TAINTTREE", 1);
    ThaumcraftApi.addWarpToItem(new ItemStack(ForbiddenBlocks.taintSapling, 1, 0), 1);
    (new DarkResearchItem("TAINTSTONE", "FORBIDDEN", (new AspectList()).add(Aspect.EARTH, 4).add(Aspect.TAINT, 6).add(Aspect.ORDER, 2), -10, 3, 2, new ItemStack(ForbiddenBlocks.taintStone, 1, 1))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.TAINTSTONE.1"), new ResearchPage((IArcaneRecipe) recipes.get("TaintStone")), new ResearchPage((IRecipe) recipes.get("TaintBrick"))}).setParents(new String[]{"THAUMIUM", "INFUSION", "ETHEREALBLOOM"}).setConcealed().registerResearchItem();
    ThaumcraftApi.addWarpToResearch("ROD_tainted", 2);
}
 
Example #7
Source File: ResearchPage.java    From GardenCollection with MIT License 5 votes vote down vote up
/**
 * @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();
	}
}
 
Example #8
Source File: ThaumcraftApi.java    From Chisel-2 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param stack the recipe result
 * @return the recipe
 */
public static InfusionRecipe getInfusionRecipe(ItemStack res) {
	for (Object r:getCraftingRecipes()) {
		if (r instanceof InfusionRecipe) {
			if (((InfusionRecipe)r).getRecipeOutput() instanceof ItemStack) {
				if (((ItemStack) ((InfusionRecipe)r).getRecipeOutput()).isItemEqual(res))
					return (InfusionRecipe)r;
			} 
		}
	}
	return null;
}
 
Example #9
Source File: ResearchPage.java    From Chisel-2 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @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();
	}
}
 
Example #10
Source File: ThaumcraftApi.java    From AdvancedMod with GNU General Public License v3.0 5 votes vote down vote up
/**
 * @param stack the recipe result
 * @return the recipe
 */
public static InfusionRecipe getInfusionRecipe(ItemStack res) {
	for (Object r:getCraftingRecipes()) {
		if (r instanceof InfusionRecipe) {
			if (((InfusionRecipe)r).getRecipeOutput() instanceof ItemStack) {
				if (((ItemStack) ((InfusionRecipe)r).getRecipeOutput()).isItemEqual(res))
					return (InfusionRecipe)r;
			} 
		}
	}
	return null;
}
 
Example #11
Source File: ResearchPage.java    From AdvancedMod with GNU General Public License v3.0 5 votes vote down vote up
/**
 * @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();
	}
}
 
Example #12
Source File: ResearchPage.java    From GardenCollection with MIT License 4 votes vote down vote up
/**
 * @param recipe a collection of infusion crafting recipes.
 */
public ResearchPage(InfusionRecipe[] recipe) {
	this.type = PageType.INFUSION_CRAFTING;
	this.recipe = recipe;
}
 
Example #13
Source File: ResearchPage.java    From AdvancedMod with GNU General Public License v3.0 4 votes vote down vote up
/**
 * @param recipe a collection of infusion crafting recipes.
 */
public ResearchPage(InfusionRecipe[] recipe) {
	this.type = PageType.INFUSION_CRAFTING;
	this.recipe = recipe;
}
 
Example #14
Source File: ForbiddenResearch.java    From ForbiddenMagic with Do What The F*ck You Want To Public License 4 votes vote down vote up
public static void addInfernalism() {
    if (!Config.noLust)
        (new DarkResearchItem("NETHERSHARDS", "FORBIDDEN", new AspectList(), -8, -5, 0, new ItemStack(ForbiddenItems.deadlyShards, 1, 0))).setPages(new ResearchPage[] { new ResearchPage("forbidden.research_page.NETHERSHARDS.1"), new ResearchPage("forbidden.research_page.NETHERSHARDS.2"), new ResearchPage("forbidden.research_page.NETHERSHARDS.3") }).setStub().setRound().setAutoUnlock().registerResearchItem();
    else
        (new DarkResearchItem("NETHERSHARDS", "FORBIDDEN", new AspectList(), -8, -5, 0, new ItemStack(ForbiddenItems.deadlyShards, 1, 0))).setPages(new ResearchPage[] { new ResearchPage("forbidden.research_page.NETHERSHARDS.1"), new ResearchPage("forbidden.research_page.NETHERSHARDS.2b"), new ResearchPage("forbidden.research_page.NETHERSHARDS.3") }).setStub().setRound().setAutoUnlock().registerResearchItem();

    (new DarkResearchItem("HELLFIRE", "FORBIDDEN", (new AspectList()).add(Aspect.FIRE, 3).add(DarkAspects.NETHER, 4).add(Aspect.TRAVEL, 2), -8, -8, 1, new ItemStack(Blocks.fire))).setPages(new ResearchPage[] { new ResearchPage("forbidden.research_page.HELLFIRE.1") }).setRound().registerResearchItem().setHidden().setAspectTriggers(new Aspect[]{DarkAspects.NETHER}).setParents(new String[] { "NETHERSHARDS" });
    (new DarkResearchItem("ROD_profane", "FORBIDDEN", (new AspectList()), -9, -8, 0, new ItemStack(ForbiddenItems.wandCore, 1, 5))).setPages(new ResearchPage[] { new ResearchPage("forbidden.research_page.ROD_profane.1") }).setRound().registerResearchItem().setHidden().setParents(new String[] { "NETHERSHARDS" }).setStub();
    if(!Config.noLust)
        (new DarkResearchItem("SUBCOLLAR", "FORBIDDEN", (new AspectList().add(Aspect.AURA, 3).add(DarkAspects.LUST, 8).add(Aspect.MAGIC, 3).add(Aspect.TRAP, 6).add(Aspect.FLESH, 4)), -11, -5, 2, new ItemStack(ForbiddenItems.subCollar))).setPages(new ResearchPage[] { new ResearchPage("forbidden.research_page.SUBCOLLAR.1"), new ResearchPage((InfusionRecipe) recipes.get("SubCollar")) }).setParents(new String[] { "NETHERSHARDS", "VISAMULET", "INFUSION" }).setHidden().setAspectTriggers(new Aspect[]{DarkAspects.LUST}).registerResearchItem();

    (new DarkResearchItem("SKULLAXE", "FORBIDDEN", (new AspectList()).add(Aspect.WEAPON, 3).add(DarkAspects.WRATH, 4).add(DarkAspects.NETHER, 1), -11, -7, 2, new ItemStack(ForbiddenItems.skullAxe))).setPages(new ResearchPage[] { new ResearchPage("forbidden.research_page.SKULLAXE.1"), new ResearchPage((InfusionRecipe) recipes.get("SkullAxe")) }).setParents(new String[] { "NETHERSHARDS", "THAUMIUM", "INFUSION" }).setConcealed().registerResearchItem();
    ThaumcraftApi.addWarpToResearch("SKULLAXE", 1);
    if(Config.gluttony != 1) {
        (new DarkResearchItem("RINGFOOD", "FORBIDDEN", (new AspectList()).add(DarkAspects.GLUTTONY, 4).add(Aspect.HUNGER, 3).add(Aspect.LIFE, 2), -11, -6, 2, new ItemStack(ForbiddenItems.ringFood))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.RINGFOOD.1"), new ResearchPage((IArcaneRecipe) recipes.get("RingFood"))}).setParents(new String[]{"NETHERSHARDS"}).registerResearchItem();
        (new DarkResearchItem("ARCANECAKE", "FORBIDDEN", (new AspectList()).add(DarkAspects.GLUTTONY, 6).add(Aspect.HUNGER, 3).add(Aspect.CRAFT, 2), -12, -6, 2, new ItemStack(ForbiddenItems.arcaneCakeItem))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.ARCANECAKE.1"), new ResearchPage((InfusionRecipe) recipes.get("ArcaneCake"))}).setParents(new String[]{"NETHERSHARDS", "INFUSION"}).setAspectTriggers(new Aspect[]{DarkAspects.GLUTTONY}).setConcealed().registerResearchItem();
    }
    (new DarkResearchItem("FOCUSBLINK", "FORBIDDEN", (new AspectList()).add(Aspect.TRAVEL, 3).add(Aspect.ENTROPY, 3).add(DarkAspects.NETHER, 3).add(DarkAspects.SLOTH, 6), -11, -3, 2, new ItemStack(ForbiddenItems.blinkFocus))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.FOCUSBLINK.1"), new ResearchPage((InfusionRecipe) recipes.get("FocusBlink"))}).setConcealed().setParents(new String[]{"NETHERSHARDS", "INFUSION"}).registerResearchItem();
    (new DarkResearchItem("MORPHTOOLS", "FORBIDDEN", (new AspectList()).add(Aspect.TOOL, 2).add(DarkAspects.ENVY, 3).add(Aspect.EXCHANGE, 2), -9, -3, 4, new ItemStack(ForbiddenItems.morphPickaxe))).setPages(new ResearchPage[] { new ResearchPage("forbidden.research_page.MORPHTOOLS.1"), new ResearchPage((InfusionRecipe) recipes.get("MorphPick")), new ResearchPage((InfusionRecipe) recipes.get("MorphSword")), new ResearchPage((InfusionRecipe) recipes.get("MorphShovel")), new ResearchPage((InfusionRecipe) recipes.get("MorphAxe")) }).setParentsHidden(new String[] { "THAUMIUM", "INFUSIONENCHANTMENT" }).setParents(new String[] { "NETHERSHARDS" }).setConcealed().registerResearchItem();
    ThaumcraftApi.addWarpToResearch("MORPHTOOLS", 4);
    (new DarkResearchItem("ROD_infernal", "FORBIDDEN", (new AspectList()).add(DarkAspects.NETHER, 4).add(Aspect.FIRE, 3).add(Aspect.TOOL, 1), -11, -4, 3, new ItemStack(ForbiddenItems.wandCore, 1, 1))).setPages(new ResearchPage[] { new ResearchPage("forbidden.research_page.ROD_infernal.1"), new ResearchPage((InfusionRecipe) recipes.get("WandRodInfernal")), new ResearchPage("forbidden.research_page.ROD_infernal.2") }).setParents(new String[] { "ROD_silverwood", "INFUSION", "NETHERSHARDS" }).setConcealed().registerResearchItem();
    ThaumcraftApi.addWarpToResearch("ROD_infernal", 2);

    if(Config.enchanting) {
        (new DarkResearchItem("WRATH", "FORBIDDEN", (new AspectList()).add(DarkAspects.WRATH, 16).add(Aspect.WEAPON, 20).add(Aspect.MAGIC, 10), -6, -3, 4, new ResourceLocation("forbidden", "textures/misc/wrath.png"))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.WRATH.1"), new ResearchPage((InfusionEnchantmentRecipe) recipes.get("Wrath"))}).setParents(new String[]{"NETHERSHARDS", "INFUSIONENCHANTMENT"}).setConcealed().registerResearchItem();
        ThaumcraftApi.addWarpToResearch("WRATH", 3);
        if (Config.greedyEnch)
            (new DarkResearchItem("GREEDY", "FORBIDDEN", (new AspectList()).add(Aspect.MAGIC, 2).add(Aspect.WEAPON, 1).add(Aspect.GREED, 3), -6, -5, 2, new ResourceLocation("forbidden", "textures/misc/greedy.png"))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.GREEDY.1"), new ResearchPage((InfusionEnchantmentRecipe) recipes.get("Greedy"))}).setParents(new String[]{"NETHERSHARDS", "INFUSIONENCHANTMENT"}).setConcealed().registerResearchItem();
        (new DarkResearchItem("CORRUPTING", "FORBIDDEN", (new AspectList()).add(DarkAspects.NETHER, 5).add(Aspect.CRYSTAL, 2).add(Aspect.EXCHANGE, 1), -6, -4, 1, new ResourceLocation("forbidden", "textures/misc/corrupting.png"))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.CORRUPTING.1"), new ResearchPage((InfusionEnchantmentRecipe) recipes.get("Corrupting"))}).setParents(new String[]{"NETHERSHARDS", "INFUSIONENCHANTMENT"}).setConcealed().registerResearchItem();

        (new DarkResearchItem("CLUSTER", "FORBIDDEN", (new AspectList()).add(Aspect.METAL, 1).add(Aspect.FIRE, 4).add(DarkAspects.ENVY, 3), -10, -1, 3, new ResourceLocation("forbidden", "textures/misc/lucrative.png"))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.CLUSTER.1"), new ResearchPage((InfusionEnchantmentRecipe) recipes.get("Cluster"))}).setParents(new String[]{"MORPHTOOLS", "ELEMENTALPICK"}).setSecondary().setConcealed().registerResearchItem();
        (new DarkResearchItem("IMPACT", "FORBIDDEN", (new AspectList()).add(Aspect.ENTROPY, 8).add(Aspect.TOOL, 10).add(Aspect.MINE, 16).add(DarkAspects.ENVY, 10), -9, -1, 3, new ResourceLocation("forbidden", "textures/misc/impact.png"))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.IMPACT.1"), new ResearchPage((InfusionEnchantmentRecipe) recipes.get("Impact"))}).setParents(new String[]{"MORPHTOOLS", "ELEMENTALSHOVEL"}).setConcealed().registerResearchItem();
        (new DarkResearchItem("VOIDTOUCHED", "FORBIDDEN", (new AspectList()).add(Aspect.ELDRITCH, 16).add(Aspect.TOOL, 10).add(Aspect.CRAFT, 8).add(DarkAspects.ENVY, 32), -8, -1, 4, new ResourceLocation("forbidden", "textures/misc/voidtouched.png"))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.VOIDTOUCHED.1"), new ResearchPage((InfusionEnchantmentRecipe) recipes.get("Voidtouched"))}).setParents(new String[]{"MORPHTOOLS", "VOIDMETAL"}).setConcealed().registerResearchItem();
        ThaumcraftApi.addWarpToResearch("VOIDTOUCHED", 3);
    }

    if (Config.wrathCage) {
        (new DarkResearchItem("FORK", "FORBIDDEN", (new AspectList()).add(DarkAspects.NETHER, 3).add(Aspect.MECHANISM, 1).add(Aspect.TOOL, 1), -6, -7, 0, new ItemStack(ForbiddenItems.fork))).setPages(new ResearchPage[] { new ResearchPage("forbidden.research_page.FORK.1"), new ResearchPage((InfusionRecipe) recipes.get("Fork")), new ResearchPage("WRATHCAGE", "forbidden.research_page.FORK.wc") }).setParents(new String[] {"INFUSION", "NETHERSHARDS", "THAUMIUM"}).setSecondary().setConcealed().registerResearchItem();
        if (Config.wrathCost > 0)
            (new DarkResearchItem("WRATHCAGE", "FORBIDDEN", (new AspectList()).add(DarkAspects.WRATH, 5).add(Aspect.MECHANISM, 3).add(Aspect.BEAST, 2), -6, -9, 4, new ItemStack(ForbiddenBlocks.wrathCage))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.WRATHCAGE.1"), new ResearchPage((InfusionRecipe) recipes.get("WrathCage")), new ResearchPage("forbidden.research_page.WRATHCAGE.2"), new ResearchPage("forbidden.research_page.WRATHCAGE.3"), new ResearchPage((CrucibleRecipe) recipes.get("MobCrystal"))}).setParents(new String[]{"FORK"}).setParentsHidden(new String[]{"INFUSION", "THAUMIUM", "DISTILESSENTIA"}).setConcealed().registerResearchItem();
        else
            (new DarkResearchItem("WRATHCAGE", "FORBIDDEN", (new AspectList()).add(DarkAspects.WRATH, 5).add(Aspect.MECHANISM, 3).add(Aspect.BEAST, 2), -6, -9, 4, new ItemStack(ForbiddenBlocks.wrathCage))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.WRATHCAGE.1"), new ResearchPage((InfusionRecipe) recipes.get("WrathCage")), new ResearchPage("forbidden.research_page.WRATHCAGE.3"), new ResearchPage((CrucibleRecipe) recipes.get("MobCrystal"))}).setParents(new String[]{"FORK"}).setParentsHidden(new String[]{"INFUSION", "THAUMIUM", "DISTILESSENTIA"}).setConcealed().registerResearchItem();
        ThaumcraftApi.addWarpToResearch("WRATHCAGE", 3);
        ThaumcraftApi.addWarpToItem(new ItemStack(ForbiddenBlocks.wrathCage, 1), 5);
    }

}
 
Example #15
Source File: ResearchPage.java    From ForbiddenMagic with Do What The F*ck You Want To Public License 4 votes vote down vote up
/**
 * @param recipe a collection of infusion crafting recipes.
 */
public ResearchPage(InfusionRecipe[] recipe) {
	this.type = PageType.INFUSION_CRAFTING;
	this.recipe = recipe;
}
 
Example #16
Source File: ResearchPage.java    From Chisel-2 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * @param recipe a collection of infusion crafting recipes.
 */
public ResearchPage(InfusionRecipe[] recipe) {
	this.type = PageType.INFUSION_CRAFTING;
	this.recipe = recipe;
}
 
Example #17
Source File: ResearchPage.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
/**
 * @param recipe a collection of infusion crafting recipes.
 */
public ResearchPage(InfusionRecipe[] recipe) {
	this.type = PageType.INFUSION_CRAFTING;
	this.recipe = recipe;
}
 
Example #18
Source File: ThaumcraftApi.java    From Chisel-2 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * @param research the research key required for this recipe to work. Leave blank if it will work without research
 * @param result the recipe output. It can either be an itemstack or an nbt compound tag that will be added to the central item
 * @param instability a number that represents the N in 1000 chance for the infusion altar to spawn an
 * 		  instability effect each second while the crafting is in progress
 * @param aspects the essentia cost per aspect. 
 * @param aspects input the central item to be infused
 * @param recipe An array of items required to craft this. Input itemstacks are NBT sensitive. 
 * 				Infusion crafting components are automatically "fuzzy" and the oredict will be checked for possible matches.
 * 
 */
public static InfusionRecipe addInfusionCraftingRecipe(String research, Object result, int instability, AspectList aspects, ItemStack input,ItemStack[] recipe)
   {
	if (!(result instanceof ItemStack || result instanceof Object[])) return null;
	InfusionRecipe r= new InfusionRecipe(research, result, instability, aspects, input, recipe);
       craftingRecipes.add(r);
	return r;
   }
 
Example #19
Source File: ThaumcraftApi.java    From GardenCollection with MIT License 3 votes vote down vote up
/**
 * @param research the research key required for this recipe to work. Leave blank if it will work without research
 * @param result the recipe output. It can either be an itemstack or an nbt compound tag that will be added to the central item
 * @param instability a number that represents the N in 1000 chance for the infusion altar to spawn an
 * 		  instability effect each second while the crafting is in progress
 * @param aspects the essentia cost per aspect. 
 * @param aspects input the central item to be infused
 * @param recipe An array of items required to craft this. Input itemstacks are NBT sensitive. 
 * 				Infusion crafting components are automatically "fuzzy" and the oredict will be checked for possible matches.
 * 
 */
public static InfusionRecipe addInfusionCraftingRecipe(String research, Object result, int instability, AspectList aspects, ItemStack input,ItemStack[] recipe)
   {
	if (!(result instanceof ItemStack || result instanceof Object[])) return null;
	InfusionRecipe r= new InfusionRecipe(research, result, instability, aspects, input, recipe);
       craftingRecipes.add(r);
	return r;
   }
 
Example #20
Source File: ThaumcraftApi.java    From ForbiddenMagic with Do What The F*ck You Want To Public License 3 votes vote down vote up
/**
 * @param research the research key required for this recipe to work. Leave blank if it will work without research
 * @param result the recipe output. It can either be an itemstack or an nbt compound tag that will be added to the central item
 * @param instability a number that represents the N in 1000 chance for the infusion altar to spawn an
 * 		  instability effect each second while the crafting is in progress
 * @param aspects the essentia cost per aspect. 
 * @param aspects input the central item to be infused
 * @param recipe An array of items required to craft this. Input itemstacks are NBT sensitive. 
 * 				Infusion crafting components are automatically "fuzzy" and the oredict will be checked for possible matches.
 * 
 */
public static InfusionRecipe addInfusionCraftingRecipe(String research, Object result, int instability, AspectList aspects, ItemStack input,ItemStack[] recipe)
   {
	if (!(result instanceof ItemStack || result instanceof Object[])) return null;
	InfusionRecipe r= new InfusionRecipe(research, result, instability, aspects, input, recipe);
       craftingRecipes.add(r);
	return r;
   }
 
Example #21
Source File: ThaumcraftApi.java    From AdvancedMod with GNU General Public License v3.0 3 votes vote down vote up
/**
 * @param research the research key required for this recipe to work. Leave blank if it will work without research
 * @param result the recipe output. It can either be an itemstack or an nbt compound tag that will be added to the central item
 * @param instability a number that represents the N in 1000 chance for the infusion altar to spawn an
 * 		  instability effect each second while the crafting is in progress
 * @param aspects the essentia cost per aspect. 
 * @param aspects input the central item to be infused
 * @param recipe An array of items required to craft this. Input itemstacks are NBT sensitive. 
 * 				Infusion crafting components are automatically "fuzzy" and the oredict will be checked for possible matches.
 * 
 */
public static InfusionRecipe addInfusionCraftingRecipe(String research, Object result, int instability, AspectList aspects, ItemStack input,ItemStack[] recipe)
   {
	if (!(result instanceof ItemStack || result instanceof Object[])) return null;
	InfusionRecipe r= new InfusionRecipe(research, result, instability, aspects, input, recipe);
       craftingRecipes.add(r);
	return r;
   }
 
Example #22
Source File: ThaumcraftApi.java    From PneumaticCraft with GNU General Public License v3.0 3 votes vote down vote up
/**
 * @param research the research key required for this recipe to work. Leave blank if it will work without research
 * @param result the recipe output. It can either be an itemstack or an nbt compound tag that will be added to the central item
 * @param instability a number that represents the N in 1000 chance for the infusion altar to spawn an
 * 		  instability effect each second while the crafting is in progress
 * @param aspects the essentia cost per aspect. 
 * @param aspects input the central item to be infused
 * @param recipe An array of items required to craft this. Input itemstacks are NBT sensitive. 
 * 				Infusion crafting components are automatically "fuzzy" and the oredict will be checked for possible matches.
 * 
 */
public static InfusionRecipe addInfusionCraftingRecipe(String research, Object result, int instability, AspectList aspects, ItemStack input,ItemStack[] recipe)
   {
	if (!(result instanceof ItemStack || result instanceof Object[])) return null;
	InfusionRecipe r= new InfusionRecipe(research, result, instability, aspects, input, recipe);
       craftingRecipes.add(r);
	return r;
   }