Refinery
Package
mods.thermalexpansion.Refinery
Adding a Recipe
Refinery.addRecipe(output, outputItem, input, energy);
output<ILiquidStack>outputItem<WeightedItemStack>input<ILiquidStack>energy<int> The total energy cost
import mods.thermalexpansion.Refinery;
// Adds a recipe that outputs 1mB of lava and a diamond (at a 100% chance) per 1mB of waterRefinery.addRecipe(<liquid:lava>, <minecraft:diamond>, <liquid:water>, 50);
// Adds a recipe that outputs 5mB of lava and a diamond (at a 1% chance) per 100mB of waterRefinery.addRecipe(<liquid:lava> * 5, <minecraft:diamond> % 1, <liquid:water> * 100, 50);Adding a Potion Recipe
Adds a recipe to be used with the Alchemical Retort Augmentation
Refinery.addRecipePotion(output, input, energy);
output<ILiquidStack>input<ILiquidStack>energy<int> The total energy cost
import mods.thermalexpansion.Refinery;
Refinery.addRecipePotion(<liquid:potion>.withTag({Potion: "minecraft:mundane"}) * 500, <liquid:potion>.withTag({Potion: "cofhcore:leaping4"}) * 100, 100);Removing a Recipe
Refinery.removeRecipe(input);
input<ILiquidStack>
import mods.thermalexpansion.Refinery;
Refinery.removeRecipe(<liquid:resin>);Removing a Potion Recipe
Refinery.removeRecipePotion(input);
input<ILiquidStack>
import mods.thermalexpansion.Refinery;
Refinery.removeRecipePotion(<liquid:potion_lingering>.withTag({Potion: "cofhcore:healing3"}));