Pulse Centrifuge (LazyAE2)
Description
Converts 1 input itemstack into an output itemstack.
Identifier
Refer to this via any of the following:
mods.threng.centrifuge/* Used as page default */
mods.threng.Centrifuge
mods.lazyae2.centrifuge
mods.lazyae2.Centrifuge
Adding Recipes
Recipe Builder
Just like other recipe types, the Pulse Centrifuge also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.threng.centrifuge.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>)
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
orio.github.phantamanta44.threng.recipe.PurifyRecipe
).groovyregister()
Example
mods.threng.centrifuge.recipeBuilder()
.input(ore('blockGlass'))
.output(item('minecraft:diamond'))
.register()
mods.threng.centrifuge.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:diamond'))
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.threng.centrifuge.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.threng.centrifuge.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.threng.centrifuge.removeAll()
Example
mods.threng.centrifuge.removeByInput(item('appliedenergistics2:material'))
mods.threng.centrifuge.removeByOutput(item('appliedenergistics2:material:4'))
mods.threng.centrifuge.removeAll()