Fluid Agitator (Factory Tech)
Description
Converts either one or two input fluidstacks and up to one input itemstack into an output itemstack, output fluidstack, or both.
Identifier
Refer to this via any of the following:
mods.factorytech.agitator/* Used as page default */
mods.factorytech.Agitator
Adding Recipes
Add the given recipe to the recipe list:
groovymods.factorytech.agitator.add(TileEntityAgitator.AgitatorRecipe)
Recipe Builder
Just like other recipe types, the Fluid Agitator 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.agitator.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 0 and less than or equal to 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
FluidStackList
. Sets the fluid inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 2.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
ItemStackList
. Sets the item outputs of the recipe. Requires greater than or equal to 0 and less than or equal to 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
FluidStackList
. Sets the fluid outputs of the recipe. Requires greater than or equal to 0 and less than or equal to 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.tileentity.specialized.TileEntityAgitator$AgitatorRecipe
).groovyregister()
Example
mods.factorytech.agitator.recipeBuilder()
.input(item('minecraft:clay'))
.fluidInput(fluid('water') * 100)
.output(item('minecraft:diamond'))
.register()
mods.factorytech.agitator.recipeBuilder()
.fluidInput(fluid('ftglowstone') * 100)
.output(item('minecraft:clay'))
.register()
mods.factorytech.agitator.recipeBuilder()
.fluidInput(fluid('lava') * 100, fluid('water') * 100)
.output(item('minecraft:clay'))
.register()
mods.factorytech.agitator.recipeBuilder()
.fluidInput(fluid('lava') * 100, fluid('ftglowstone') * 100)
.fluidOutput(fluid('ftglowstone') * 100)
.register()
mods.factorytech.agitator.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.fluidInput(fluid('water') * 100)
.output(item('minecraft:diamond') * 5)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.factorytech.agitator.remove(TileEntityAgitator.AgitatorRecipe)
Removes all recipes that match the given input:
groovymods.factorytech.agitator.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.factorytech.agitator.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.factorytech.agitator.removeAll()
Example
mods.factorytech.agitator.removeByInput(fluid('lava'))
mods.factorytech.agitator.removeByInput(fluid('ftglowstone'))
mods.factorytech.agitator.removeByInput(item('minecraft:sand'))
mods.factorytech.agitator.removeByOutput(fluid('h2so4'))
mods.factorytech.agitator.removeByOutput(item('minecraft:stone'))
mods.factorytech.agitator.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.agitator.streamRecipes()