Refinery (PneumaticCraft: Repressurized)
Description
Converts an input fluidstack into between 2 and 4 fluidstacks, consuming Temperature, with the number of fluidstacks output depending on the recipe and the number of Refineries vertically stacked.
Identifier
Refer to this via any of the following:
mods.pneumaticcraft.refinery/* Used as page default */
mods.pneumaticcraft.Refinery
Adding Recipes
Add the given recipe to the recipe list:
groovymods.pneumaticcraft.refinery.add(RefineryRecipe)
Recipe Builder
Just like other recipe types, the Refinery also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.pneumaticcraft.refinery.recipeBuilder()
FluidStackList
. Sets the fluid inputs of the recipe. Requires exactly 1.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
FluidStackList
. Sets the fluid outputs of the recipe. Requires greater than or equal to 2 and less than or equal to 4.groovyfluidOutput(FluidStack) fluidOutput(FluidStack...) fluidOutput(Collection<FluidStack>)
int
. Sets the required temperate in Kelvin required to process the recipe. (Default373
).groovyrequiredTemperature(int)
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
orme.desht.pneumaticcraft.common.recipes.RefineryRecipe
).groovyregister()
Example
mods.pneumaticcraft.refinery.recipeBuilder()
.fluidInput(fluid('water') * 1000)
.fluidOutput(fluid('lava') * 750, fluid('lava') * 250, fluid('lava') * 100, fluid('lava') * 50)
.register()
mods.pneumaticcraft.refinery.recipeBuilder()
.fluidInput(fluid('lava') * 100)
.fluidOutput(fluid('water') * 50, fluid('kerosene') * 25)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.pneumaticcraft.refinery.remove(RefineryRecipe)
Removes all recipes that match the given input:
groovymods.pneumaticcraft.refinery.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.pneumaticcraft.refinery.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.pneumaticcraft.refinery.removeAll()
Example
mods.pneumaticcraft.refinery.removeByInput(fluid('oil'))
mods.pneumaticcraft.refinery.removeByOutput(fluid('kerosene'))
mods.pneumaticcraft.refinery.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.pneumaticcraft.refinery.streamRecipes()