Requires PneumaticCraft: Repressurized v2.12.6 or newer.
Refinery
Link to refinery
Die Refinery ist vom Typ IRecipeManager und implementiert alle Methoden, die für IRecipeManager verfügbar sind wie removeRecipe()
und removeAll()
.
Methoden
Link to methoden
Rezept hinzufügen
Link to rezept-hinzufügen
Refinery recipes require a single input fluid, and a list of 2-4 output fluids. Recipes with the same input can be added multiple times, as long as the number of output fluids are different (the Refinery will use the recipe with the greatest number of outputs, limited by the number of Refinery Output blocks are present in the Refinery multiblock structure).
In addition, a minimum temperature (in Kelvin) must be supplied, and an optional maximum temperature; if omitted, this defaults to Integer.MAX_VALUE
(effectively unlimited).
The following script adds a recipe to convert 50mB of Diesel into 25mB of LPG and 25mB of Lubricant, requiring a minimum temperature of 473K (200°C):
ZenScript Copy// <recipetype:pneumaticcraft:refinery>.addRecipe(name as string, inputFluid as CTFluidIngredient, outputFluids as IFluidStack[], int minTemperature)
<recipetype:pneumaticcraft:refinery>.addRecipe("extra_diesel_refining", <fluid:pneumaticcraft:diesel> * 50, [<fluid:pneumaticcraft:lpg> * 25, <fluid:pneumaticcraft:lubricant> * 25], 473);
Remove Recipes
Link to remove-recipes
The following script will remove all Refinery recipes:
ZenScript Copy<recipetype:pneumaticcraft:refinery>.removeAll();