diff options
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/recipes/RecipesToRemove.java')
-rw-r--r-- | src/main/java/gtPlusPlus/xmod/gregtech/recipes/RecipesToRemove.java | 81 |
1 files changed, 37 insertions, 44 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/RecipesToRemove.java b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/RecipesToRemove.java index 99e3d5c4d9..271e29d654 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/RecipesToRemove.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/RecipesToRemove.java @@ -1,7 +1,7 @@ package gtPlusPlus.xmod.gregtech.recipes; -import gregtech.api.util.GT_Recipe; import gregtech.api.util.GTPP_Recipe; +import gregtech.api.util.GT_Recipe; import gtPlusPlus.api.objects.Logger; import gtPlusPlus.core.material.Material; import gtPlusPlus.core.material.ORES; @@ -11,47 +11,40 @@ import net.minecraftforge.fluids.FluidStack; public class RecipesToRemove { - public static void go() { - - Logger.INFO("Processing Gregtech recipe maps, removing recipes to suit GT++."); - - //Remove Rare Earth Centrifuging - //1 Rare Earth Dust - 25% chance for small piles of: neodymium, yttrium, lanthanum, cerium, cadmium, and caesium - //Replaced by advanced sifting recipe. - GT_Recipe aRareEarthCentrifuging = GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.findRecipe(null, false, 20, new FluidStack[] {}, new ItemStack[] {ItemUtils.getItemStackOfAmountFromOreDict("dustRareEarth", 1)}); - if (aRareEarthCentrifuging != null && aRareEarthCentrifuging.mEnabled) { - aRareEarthCentrifuging.mEnabled = false; - aRareEarthCentrifuging.mHidden = true; - GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.mRecipeList.remove(aRareEarthCentrifuging); - //GTPP_Recipe.GT_Recipe_Map_LargeCentrifuge.sMultiblockCentrifugeRecipes.mRecipeList.remove(aRareEarthCentrifuging); - GTPP_Recipe.GTPP_Recipe_Map.sMultiblockCentrifugeRecipes_GT.mRecipeList.remove(aRareEarthCentrifuging); - Logger.INFO("Removed vanilla GT Rare Earth processing."); - //Set the Chemical Symbol for Rare Earth now that we are giving it custom outputs - //Best not to set this unless the original recipe is removed. - /*Materials.RareEarth.mChemicalFormula = "(" - +ELEMENT.getInstance().YTTRIUM.vChemicalSymbol - +ELEMENT.getInstance().NEODYMIUM.vChemicalSymbol - +ELEMENT.getInstance().LANTHANUM.vChemicalSymbol - +ELEMENT.getInstance().CERIUM.vChemicalSymbol - +ELEMENT.getInstance().CADMIUM.vChemicalSymbol - +ELEMENT.getInstance().CAESIUM.vChemicalSymbol - +ELEMENT.getInstance().YTTERBIUM.vChemicalSymbol - +ELEMENT.getInstance().SAMARIUM.vChemicalSymbol - +ELEMENT.getInstance().GADOLINIUM.vChemicalSymbol+ - ")";*/ - - Material[] aLowTierOutputMaterials = new Material[] { - ORES.GREENOCKITE - }; - - - - - - - - } - - } - + public static void go() { + + Logger.INFO("Processing Gregtech recipe maps, removing recipes to suit GT++."); + + // Remove Rare Earth Centrifuging + // 1 Rare Earth Dust - 25% chance for small piles of: neodymium, yttrium, lanthanum, cerium, cadmium, and + // caesium + // Replaced by advanced sifting recipe. + GT_Recipe aRareEarthCentrifuging = GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.findRecipe( + null, false, 20, new FluidStack[] {}, new ItemStack[] { + ItemUtils.getItemStackOfAmountFromOreDict("dustRareEarth", 1) + }); + if (aRareEarthCentrifuging != null && aRareEarthCentrifuging.mEnabled) { + aRareEarthCentrifuging.mEnabled = false; + aRareEarthCentrifuging.mHidden = true; + GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.mRecipeList.remove(aRareEarthCentrifuging); + // GTPP_Recipe.GT_Recipe_Map_LargeCentrifuge.sMultiblockCentrifugeRecipes.mRecipeList.remove(aRareEarthCentrifuging); + GTPP_Recipe.GTPP_Recipe_Map.sMultiblockCentrifugeRecipes_GT.mRecipeList.remove(aRareEarthCentrifuging); + Logger.INFO("Removed vanilla GT Rare Earth processing."); + // Set the Chemical Symbol for Rare Earth now that we are giving it custom outputs + // Best not to set this unless the original recipe is removed. + /*Materials.RareEarth.mChemicalFormula = "(" + +ELEMENT.getInstance().YTTRIUM.vChemicalSymbol + +ELEMENT.getInstance().NEODYMIUM.vChemicalSymbol + +ELEMENT.getInstance().LANTHANUM.vChemicalSymbol + +ELEMENT.getInstance().CERIUM.vChemicalSymbol + +ELEMENT.getInstance().CADMIUM.vChemicalSymbol + +ELEMENT.getInstance().CAESIUM.vChemicalSymbol + +ELEMENT.getInstance().YTTERBIUM.vChemicalSymbol + +ELEMENT.getInstance().SAMARIUM.vChemicalSymbol + +ELEMENT.getInstance().GADOLINIUM.vChemicalSymbol+ + ")";*/ + + Material[] aLowTierOutputMaterials = new Material[] {ORES.GREENOCKITE}; + } + } } |