Search in sources :

Example 1 with IComplexRefineryRecipeManager

use of buildcraft.api.recipes.IComplexRefineryRecipeManager in project BuildCraft by BuildCraft.

the class ComplexRefiningManager method addBiDirectionalHeatExchange.

private static void addBiDirectionalHeatExchange(FluidDefinition[] coldToHot, int amount, int ticks) {
    IComplexRefineryRecipeManager manager = BuildcraftRecipeRegistry.complexRefinery;
    for (int h = 1; h < coldToHot.length; h++) {
        FluidDefinition cold = coldToHot[h - 1];
        FluidDefinition hot = coldToHot[h];
        manager.addHeatableRecipe(cold.createFluidStack(amount), hot.createFluidStack(amount), h - 1, h, ticks, false);
        manager.addCoolableRecipe(hot.createFluidStack(amount), cold.createFluidStack(amount), h, h - 1, ticks, false);
    }
}
Also used : FluidDefinition(buildcraft.core.lib.fluids.FluidDefinition) IComplexRefineryRecipeManager(buildcraft.api.recipes.IComplexRefineryRecipeManager)

Aggregations

IComplexRefineryRecipeManager (buildcraft.api.recipes.IComplexRefineryRecipeManager)1 FluidDefinition (buildcraft.core.lib.fluids.FluidDefinition)1