Imag Fusor (AcademyCraft)
Description
Converts one item and defined amount of Imag Phase Liquid into one item.
Identifier
Refer to this via any of the following:
mods.academy.imag_fusor/* Used as page default */
mods.academy.imagfusor
mods.academy.imagFusor
mods.academy.ImagFusor
Adding Recipes
Add the given recipe to the recipe list:
groovymods.academy.imag_fusor.add(ImagFusorRecipes.IFRecipe)
Adds recipes in the format
output
,input
,amount of Imag Phase Liquid
:groovymods.academy.imag_fusor.addRecipe(ItemStack, IIngredient, int)
Example
mods.academy.imag_fusor.addRecipe(item('academy:crystal_normal'), item('academy:crystal_low'), 3000)
Recipe Builder
Just like other recipe types, the Imag Fusor also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.academy.imag_fusor.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. Amount of Imag Phase Liquid consumed for this recipe. Requires greater than 0. (Default1000
).groovyfluid(int)
First validates the builder, returning
null
and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnull
orcn.academy.crafting.ImagFusorRecipes$IFRecipe
).groovyregister()
Example
mods.academy.imag_fusor.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.fluid(1000)
.register()
mods.academy.imag_fusor.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.fluid(3000)
.register()
mods.academy.imag_fusor.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay') * 2)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.academy.imag_fusor.remove(ImagFusorRecipes.IFRecipe)
Removes an entry matching the given
ItemStack
:groovymods.academy.imag_fusor.removeByInput(ItemStack)
Removes all registered recipes:
groovymods.academy.imag_fusor.removeAll()
Example
mods.academy.imag_fusor.removeByInput(item('academy:crystal_normal'))
mods.academy.imag_fusor.removeAll()
Getting the value of recipes
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.academy.imag_fusor.streamRecipes()