Crucible (Factory Tech)
Description
Converts an input itemstack into an output fluidstack.
Identifier
Refer to this via any of the following:
mods.factorytech.crucible/* Used as page default */
mods.factorytech.Crucible
Adding Recipes
Add the given recipe to the recipe list:
groovymods.factorytech.crucible.add(MachineRecipes.MachineRecipe<ItemStack, FluidStack>)
Recipe Builder
Just like other recipe types, the Crucible also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
Recipe Builder
Create the Recipe Builder.
groovymods.factorytech.crucible.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
FluidStackList
. Sets the fluid outputs of the recipe. Requires exactly 1.groovyfluidOutput(FluidStack) fluidOutput(FluidStack...) fluidOutput(Collection<FluidStack>)
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
ordalapo.factech.auxiliary.MachineRecipes$MachineRecipe<net.minecraft.item.ItemStack, net.minecraftforge.fluids.FluidStack>
).groovyregister()
Example
mods.factorytech.crucible.recipeBuilder()
.input(item('minecraft:clay'))
.fluidOutput(fluid('water'))
.register()
mods.factorytech.crucible.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.fluidOutput(fluid('lava') * 30)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.factorytech.crucible.remove(MachineRecipes.MachineRecipe<ItemStack, FluidStack>)
Removes all recipes that match the given input:
groovymods.factorytech.crucible.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.factorytech.crucible.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.factorytech.crucible.removeAll()
Example
mods.factorytech.crucible.removeByInput(item('minecraft:ice'))
mods.factorytech.crucible.removeByOutput(fluid('lava'))
mods.factorytech.crucible.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.factorytech.crucible.streamRecipes()