Solidifier (Cyclic)
Description
Converts up to 4 input itemstacks and an input fluidstack into an output itemstack.
Identifier
Refer to this via any of the following:
mods.cyclicmagic.solidifier/* Used as page default */
mods.cyclicmagic.Solidifier
mods.cyclic.solidifier
mods.cyclic.Solidifier
Adding Recipes
Recipe Builder
Just like other recipe types, the Solidifier also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.cyclicmagic.solidifier.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 4.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
FluidStackList
. Sets the fluid inputs of the recipe. Requires exactly 1.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
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
orcom.lothrazar.cyclicmagic.block.solidifier.RecipeSolidifier
).groovyregister()
Example
mods.cyclicmagic.solidifier.recipeBuilder()
.input(item('minecraft:clay'))
.fluidInput(fluid('water') * 175)
.output(item('minecraft:gold_ingot') * 3)
.register()
mods.cyclicmagic.solidifier.recipeBuilder()
.input(ore('logWood'), ore('sand'), ore('gravel'), item('minecraft:diamond'))
.fluidInput(fluid('lava') * 500)
.output(item('minecraft:clay') * 2)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.cyclicmagic.solidifier.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.cyclicmagic.solidifier.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.cyclicmagic.solidifier.removeAll()
Example
mods.cyclicmagic.solidifier.removeByInput(item('minecraft:bucket'))
mods.cyclicmagic.solidifier.removeByInput(fluid('water'))
mods.cyclicmagic.solidifier.removeByOutput(item('cyclicmagic:crystallized_obsidian'))
mods.cyclicmagic.solidifier.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.cyclicmagic.solidifier.streamRecipes()