Refrigerator (Factory Tech)
Description
Converts an input fluidstack into an output itemstack.
Identifier
Refer to this via any of the following:
mods.factorytech.refrigerator/* Used as page default */
mods.factorytech.Refrigerator
Adding Recipes
Add the given recipe to the recipe list:
groovymods.factorytech.refrigerator.add(MachineRecipes.MachineRecipe<FluidStack, ItemStack>)
Recipe Builder
Just like other recipe types, the Refrigerator 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.refrigerator.recipeBuilder()
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
ordalapo.factech.auxiliary.MachineRecipes$MachineRecipe<net.minecraftforge.fluids.FluidStack, net.minecraft.item.ItemStack>
).groovyregister()
Example
mods.factorytech.refrigerator.recipeBuilder()
.fluidInput(fluid('water') * 100)
.output(item('minecraft:diamond'))
.register()
mods.factorytech.refrigerator.recipeBuilder()
.fluidInput(fluid('lava') * 30)
.output(item('minecraft:clay'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.factorytech.refrigerator.remove(MachineRecipes.MachineRecipe<FluidStack, ItemStack>)
Removes all recipes that match the given input:
groovymods.factorytech.refrigerator.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.factorytech.refrigerator.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.factorytech.refrigerator.removeAll()
Example
mods.factorytech.refrigerator.removeByInput(fluid('water'))
mods.factorytech.refrigerator.removeByOutput(item('minecraft:obsidian'))
mods.factorytech.refrigerator.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.refrigerator.streamRecipes()