aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_PleaseRefactorMe.java
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2016-10-23 16:39:30 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2016-10-23 16:39:30 +1000
commit6754387bca14ef3c2bdc5e69d0f4920ca7568553 (patch)
treeb6bd67e213a66bce0e418105b8a7ac51a141b6a0 /src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_PleaseRefactorMe.java
parent3826cbb1223a25a6d476486d9369d65a22090aec (diff)
downloadGT5-Unofficial-6754387bca14ef3c2bdc5e69d0f4920ca7568553.tar.gz
GT5-Unofficial-6754387bca14ef3c2bdc5e69d0f4920ca7568553.tar.bz2
GT5-Unofficial-6754387bca14ef3c2bdc5e69d0f4920ca7568553.zip
% Moved more recipe generation to separate classes, now the order of item generation isn't important because recipe generation now happens after, not during item creation.
% Most Generated Item classes are now < 10 lines. > This should slightly improve the startup time by 10-15 seconds, maybe more, maybe less.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_PleaseRefactorMe.java')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_PleaseRefactorMe.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_PleaseRefactorMe.java b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_PleaseRefactorMe.java
new file mode 100644
index 0000000000..1919534ad0
--- /dev/null
+++ b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_PleaseRefactorMe.java
@@ -0,0 +1,28 @@
+package gtPlusPlus.xmod.gregtech.loaders;
+
+import gtPlusPlus.core.material.Material;
+import gtPlusPlus.core.util.Utils;
+import gtPlusPlus.core.util.recipe.UtilsRecipe;
+
+public class RecipeGen_PleaseRefactorMe {
+
+ public static void generateRecipes(Material material){
+ int tVoltageMultiplier = material.getMeltingPoint_K() >= 2800 ? 64 : 16;
+ Utils.LOG_INFO("Generating Shaped Crafting recipes for "+material.getLocalizedName()); //TODO
+ //Ring Recipe
+
+ if (UtilsRecipe.addShapedGregtechRecipe(
+ "craftingToolWrench", null, null,
+ null, material.getRod(1), null,
+ null, null, null,
+ material.getRing(1))){
+ Utils.LOG_INFO("Ring Recipe: "+material.getLocalizedName()+" - Success");
+ }
+ else {
+ Utils.LOG_INFO("Ring Recipe: "+material.getLocalizedName()+" - Failed");
+ }
+
+
+
+ }
+}