Added Electrolytic Separator recipes to RecipeHelper API

This commit is contained in:
Aidan C. Brady 2014-01-05 16:27:56 -05:00
parent be96cb62ce
commit a9143ee318

View file

@ -5,6 +5,7 @@ import java.lang.reflect.Method;
import mekanism.api.gas.GasStack;
import mekanism.api.infuse.InfusionInput;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
/**
* Use this handy class to add recipes to Mekanism machinery.
@ -141,6 +142,22 @@ public final class RecipeHelper
}
}
/**
* Add a Electrolytic Separator recipe.
* @param input - input ItemStack
* @param output - output ItemStack
*/
public static void addElectrolyticSeparatorRecipe(FluidStack input, ChemicalInput output)
{
try {
Class recipeClass = Class.forName("mekanism.common.RecipeHandler");
Method m = recipeClass.getMethod("addElectrolyticSeparatorRecipe", FluidStack.class, ChemicalInput.class);
m.invoke(null, input, output);
} catch(Exception e) {
System.err.println("[Mekanism] Error while adding recipe: " + e.getMessage());
}
}
/**
* Add a Metallurgic Infuser recipe.
* @param input - input Infusion