Washing Factory (Industrial Foregoing)
Description
Converts an input itemstack and input fluidstack into an output fluidstack.
Identifier
Refer to this via any of the following:
groovy
mods.industrialforegoing.ore_raw/* Used as page default */
mods.industrialforegoing.oreraw
mods.industrialforegoing.oreRaw
mods.industrialforegoing.OreRaw
mods.industrialforegoing.washing
mods.industrialforegoing.Washing
Adding Recipes
Adds a Washing Factory recipe in the format
ore
,input
,output
:groovymods.industrialforegoing.ore_raw.add(OreDictIngredient, FluidStack, FluidStack)
Adds a Washing Factory recipe in the format
ore
,input
,output
:groovymods.industrialforegoing.ore_raw.add(String, FluidStack, FluidStack)
Example
groovy
mods.industrialforegoing.ore_raw.add(ore('oreGold'), fluid('meat') * 200, fluid('if.ore_fluid_raw').withNbt(['Ore': 'oreGold']) * 300)
mods.industrialforegoing.ore_raw.add(ore('stone'), fluid('water') * 1000, fluid('lava') * 50)
Removing Recipes
Removes all recipes that match the given input:
groovymods.industrialforegoing.ore_raw.removeByInput(IIngredient)
Removes all recipes that match the given ore:
groovymods.industrialforegoing.ore_raw.removeByOre(OreDictIngredient)
Removes all recipes that match the given ore:
groovymods.industrialforegoing.ore_raw.removeByOre(String)
Removes all recipes that match the given output:
groovymods.industrialforegoing.ore_raw.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.industrialforegoing.ore_raw.removeAll()
Example
groovy
mods.industrialforegoing.ore_raw.removeByInput(fluid('meat'))
mods.industrialforegoing.ore_raw.removeByOre(ore('oreRedstone'))
mods.industrialforegoing.ore_raw.removeByOre('oreRedstone')
mods.industrialforegoing.ore_raw.removeByOutput(fluid('if.ore_fluid_raw').withNbt(['Ore': 'oreRedstone']),)
mods.industrialforegoing.ore_raw.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.industrialforegoing.ore_raw.streamRecipes()