Updated NEI module to reflect new GUI changes, added PRC to RecipeHelper

This commit is contained in:
Aidan C. Brady committed 2014-06-14 18:33:48 +02:00
1 parent 3b99d376a4
commit 5c36612146
38 files changed
+336 -109

No files matched your search

+19 -1
View File
@@ -207,7 +207,7 @@ public final class RecipeHelper
}
/**
* Add a Electrolytic Separator recipe.
* Add a Chemical Crystallizer recipe.
* @param input - input GasStack
* @param output - output ItemStack
*/
@@ -237,4 +237,22 @@ public final class RecipeHelper
System.err.println("Error while adding recipe: " + e.getMessage());
}
}
/**
* Add a Pressurized Reaction Chamber recipe.
* @param input - input PressurizedReactants
* @param output - output PressurizedProducts
* @param extraEnergy - extra energy needed by the recipe
* @param ticks - amount of ticks it takes for this recipe to complete
*/
public static void addPRCRecipe(PressurizedReactants input, PressurizedProducts output, double extraEnergy, int ticks)
{
try {
Class recipeClass = Class.forName("mekanism.common.recipe.RecipeHandler");
Method m = recipeClass.getMethod("addPRCRecipe", PressurizedReactants.class, PressurizedProducts.class, Double.TYPE, Integer.TYPE);
m.invoke(null, input, output);
} catch(Exception e) {
System.err.println("Error while adding recipe: " + e.getMessage());
}
}
}