Added Electrolytic Separator recipes to RecipeHelper API
This commit is contained in:
parent
be96cb62ce
commit
a9143ee318
1 changed files with 17 additions and 0 deletions
|
@ -5,6 +5,7 @@ import java.lang.reflect.Method;
|
||||||
import mekanism.api.gas.GasStack;
|
import mekanism.api.gas.GasStack;
|
||||||
import mekanism.api.infuse.InfusionInput;
|
import mekanism.api.infuse.InfusionInput;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraftforge.fluids.FluidStack;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use this handy class to add recipes to Mekanism machinery.
|
* 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.
|
* Add a Metallurgic Infuser recipe.
|
||||||
* @param input - input Infusion
|
* @param input - input Infusion
|
||||||
|
|
Loading…
Reference in a new issue