aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/loaders/oreprocessing/ProcessingGear.java
diff options
context:
space:
mode:
authorMuramasa <haydenkilloh@gmail.com>2016-09-10 13:20:09 +0100
committerMuramasa <haydenkilloh@gmail.com>2016-09-10 13:20:09 +0100
commit33e6060119d4263dcac1a594e53390e7a62e848a (patch)
treee2d674d316b120fd652a357a20b9b3e8268a8e26 /src/main/java/gregtech/loaders/oreprocessing/ProcessingGear.java
parentf53fb2b84b32a9f55b6be8d84a9afc016c21e4d0 (diff)
downloadGT5-Unofficial-33e6060119d4263dcac1a594e53390e7a62e848a.tar.gz
GT5-Unofficial-33e6060119d4263dcac1a594e53390e7a62e848a.tar.bz2
GT5-Unofficial-33e6060119d4263dcac1a594e53390e7a62e848a.zip
Simplify, cleanup and seperate processors
Diffstat (limited to 'src/main/java/gregtech/loaders/oreprocessing/ProcessingGear.java')
-rw-r--r--src/main/java/gregtech/loaders/oreprocessing/ProcessingGear.java16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingGear.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingGear.java
index a8ad741c86..8b022b4a03 100644
--- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingGear.java
+++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingGear.java
@@ -6,16 +6,26 @@ import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.util.GT_Utility;
import net.minecraft.item.ItemStack;
public class ProcessingGear implements gregtech.api.interfaces.IOreRecipeRegistrator {
public ProcessingGear() {
OrePrefixes.gearGt.add(this);
+ OrePrefixes.gearGtSmall.add(this);
}
public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) {
- GT_ModHandler.removeRecipeByOutput(aStack);
- if (aMaterial.mStandardMoltenFluid != null)
- GT_Values.RA.addFluidSolidifierRecipe(ItemList.Shape_Mold_Gear.get(0L, new Object[0]), aMaterial.getMolten(576L), GT_OreDictUnificator.get(aPrefix, aMaterial, 1L), 128, 8);
+ switch (aPrefix) {
+ case gearGt:
+ GT_ModHandler.removeRecipeByOutput(aStack);
+ if (aMaterial.mStandardMoltenFluid != null)
+ GT_Values.RA.addFluidSolidifierRecipe(ItemList.Shape_Mold_Gear.get(0L, new Object[0]), aMaterial.getMolten(576L), GT_OreDictUnificator.get(aPrefix, aMaterial, 1L), 128, 8);
+ break;
+ case gearGtSmall:
+ if (aMaterial.mStandardMoltenFluid != null)
+ GT_Values.RA.addFluidSolidifierRecipe(ItemList.Shape_Mold_Gear_Small.get(0L, new Object[0]), aMaterial.getMolten(144L), GT_Utility.copyAmount(1L, new Object[]{aStack}), 16, 8);
+ break;
+ }
}
}