From d392aef3a42041ce152e2206810a638e65a493bf Mon Sep 17 00:00:00 2001 From: Mary <33456283+FourIsTheNumber@users.noreply.github.com> Date: Wed, 25 Sep 2024 16:19:07 -0400 Subject: [PATCH] Fix sealed wood + more collisions (#3282) --- .../werkstoff_loaders/recipe/DustLoader.java | 45 ----- .../recipe/SimpleMetalLoader.java | 23 ++- .../loader/NaquadahReworkRecipeLoader.java | 93 --------- .../java/gregtech/api/recipe/RecipeMaps.java | 23 --- .../gregtech/api/util/GTForestryCompat.java | 11 +- .../java/gregtech/common/items/ItemDrop.java | 34 +--- .../oreprocessing/ProcessingCrushedOre.java | 4 + .../loaders/oreprocessing/ProcessingGem.java | 3 + .../loaders/oreprocessing/ProcessingLens.java | 3 + .../oreprocessing/ProcessingPlank.java | 7 + .../oreprocessing/ProcessingStick.java | 3 + .../oreprocessing/ProcessingStone.java | 1 + .../oreprocessing/ProcessingTransforming.java | 20 +- .../postload/ProcessingArrayRecipeLoader.java | 7 +- .../postload/recipes/FermenterRecipes.java | 7 - .../recipes/FluidSolidifierRecipes.java | 17 -- .../recipes/VacuumFreezerRecipes.java | 28 --- .../java/gtnhlanth/loader/BotRecipes.java | 3 +- .../java/gtnhlanth/loader/RecipeLoader.java | 187 ------------------ 19 files changed, 58 insertions(+), 461 deletions(-) diff --git a/src/main/java/bartworks/system/material/werkstoff_loaders/recipe/DustLoader.java b/src/main/java/bartworks/system/material/werkstoff_loaders/recipe/DustLoader.java index ab7a2167aa3..bcc5d422b00 100644 --- a/src/main/java/bartworks/system/material/werkstoff_loaders/recipe/DustLoader.java +++ b/src/main/java/bartworks/system/material/werkstoff_loaders/recipe/DustLoader.java @@ -205,7 +205,6 @@ public void run(Werkstoff werkstoff) { * 30, 0); RecipeMaps.electrolyzerRecipes.add(tRecipe); - RecipeMaps.electrolyzerNonCellRecipes.add(tRecipe); } if (werkstoffStats.isCentrifuge()) { RecipeMaps.centrifugeRecipes.add( @@ -230,28 +229,6 @@ public void run(Werkstoff werkstoff) { .size()) * 5, 0)); - GTRecipe tRecipe = new GTRecipe( - false, - stOutputs.toArray(new ItemStack[0]), - new ItemStack[] { input }, - null, - null, - new FluidStack[] { flOutputs.size() > 0 ? flOutputs.get(0) : null }, - null, - (int) Math.max( - 1L, - Math.abs( - werkstoffStats.getProtons() / werkstoff.getContents() - .getValue() - .size())), - Math.min( - 4, - werkstoff.getContents() - .getValue() - .size()) - * 30, - 0); - RecipeMaps.centrifugeNonCellRecipes.add(tRecipe); } if (werkstoff.getGenerationFeatures() .hasChemicalRecipes()) { @@ -304,28 +281,6 @@ public void run(Werkstoff werkstoff) { .size()) * 5, 0)); - GTRecipe tRecipe = new GTRecipe( - false, - stOutputs.toArray(new ItemStack[0]), - new ItemStack[] { input }, - null, - null, - new FluidStack[] { flOutputs.size() > 0 ? flOutputs.get(0) : null }, - null, - (int) Math.max( - 1L, - Math.abs( - werkstoffStats.getProtons() / werkstoff.getContents() - .getValue() - .size())), - Math.min( - 4, - werkstoff.getContents() - .getValue() - .size()) - * 30, - 0); - RecipeMaps.mixerNonCellRecipes.add(tRecipe); } } diff --git a/src/main/java/bartworks/system/material/werkstoff_loaders/recipe/SimpleMetalLoader.java b/src/main/java/bartworks/system/material/werkstoff_loaders/recipe/SimpleMetalLoader.java index a9c1143e58f..299bc5d393c 100644 --- a/src/main/java/bartworks/system/material/werkstoff_loaders/recipe/SimpleMetalLoader.java +++ b/src/main/java/bartworks/system/material/werkstoff_loaders/recipe/SimpleMetalLoader.java @@ -31,6 +31,7 @@ import bartworks.API.SideReference; import bartworks.client.textures.PrefixTextureLinker; import bartworks.system.material.Werkstoff; +import bartworks.system.material.WerkstoffLoader; import bartworks.system.material.werkstoff_loaders.IWerkstoffRunnable; import gregtech.api.GregTechAPI; import gregtech.api.enums.GTValues; @@ -151,16 +152,18 @@ public void run(Werkstoff werkstoff) { .eut(16) .addTo(latheRecipes); - GTValues.RA.stdBuilder() - .itemInputs(werkstoff.get(plate), GTUtility.getIntegratedCircuit(1)) - .itemOutputs(werkstoff.get(foil, 4)) - .duration( - (int) Math.max( - werkstoff.getStats() - .getMass() * 1L, - 1L)) - .eut(24) - .addTo(benderRecipes); + if (werkstoff != WerkstoffLoader.Fluorophlogopite) { + GTValues.RA.stdBuilder() + .itemInputs(werkstoff.get(plate), GTUtility.getIntegratedCircuit(1)) + .itemOutputs(werkstoff.get(foil, 4)) + .duration( + (int) Math.max( + werkstoff.getStats() + .getMass(), + 1L)) + .eut(24) + .addTo(benderRecipes); + } GTValues.RA.stdBuilder() .itemInputs(werkstoff.get(ingot), GTUtility.getIntegratedCircuit(10)) diff --git a/src/main/java/goodgenerator/loader/NaquadahReworkRecipeLoader.java b/src/main/java/goodgenerator/loader/NaquadahReworkRecipeLoader.java index 1fa45ba0f35..855f3b9bbe9 100644 --- a/src/main/java/goodgenerator/loader/NaquadahReworkRecipeLoader.java +++ b/src/main/java/goodgenerator/loader/NaquadahReworkRecipeLoader.java @@ -817,99 +817,6 @@ public static void Remover() { GTLog.out.print("Centrifuge done!\n"); - // For Centrifuge (PA) - for (GTRecipe recipe : RecipeMaps.centrifugeNonCellRecipes.getAllRecipes()) { - ItemStack input = null; - if (recipe.mInputs.length > 0) input = recipe.mInputs[0]; - if (!GTUtility.isStackValid(input)) continue; - - int[] oreDict = OreDictionary.getOreIDs(input); - if (checkCombs && input.isItemEqual(GTBees.combs.getStackForType(CombType.DOB))) { - GTRecipe tRecipe = recipe.copy(); - boolean modified = false; - for (int i = 0; i < tRecipe.mOutputs.length; i++) { - if (!GTUtility.isStackValid(tRecipe.mOutputs[i])) continue; - if (tRecipe.mOutputs[i].isItemEqual(Materials.Naquadah.getDustTiny(1))) { - tRecipe.mOutputs[i] = GTUtility - .copyAmount(tRecipe.mOutputs[i].stackSize * 2L, naquadahEarth.get(OrePrefixes.dustTiny, 1)); - modified = true; - } - } - if (modified) { - GTLog.err.println("recipe edited: " + displayRecipe(tRecipe)); - reAdd.add(tRecipe); - remove.add(recipe); - } - } else for (int oreDictID : oreDict) { - String oredictName = OreDictionary.getOreName(oreDictID); - if (!oredictName.startsWith("dustPureNaq") && !oredictName.startsWith("dustImpureNaq") - && !oredictName.startsWith("dustSpace") - && !oredictName.startsWith("dustNaq")) continue; - - GTRecipe tRecipe = recipe.copy(); - boolean modified = false; - for (int i = 0; i < tRecipe.mOutputs.length; i++) { - if (!GTUtility.isStackValid(tRecipe.mOutputs[i])) continue; - if (tRecipe.mOutputs[i].isItemEqual(Materials.Naquadah.getDustTiny(1))) { - tRecipe.mOutputs[i] = GTUtility - .copyAmount(tRecipe.mOutputs[i].stackSize * 2, naquadahEarth.get(OrePrefixes.dustTiny, 1)); - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.NaquadahEnriched.getDustTiny(1))) { - tRecipe.mOutputs[i] = GTUtility.copyAmount( - tRecipe.mOutputs[i].stackSize * 2, - enrichedNaquadahEarth.get(OrePrefixes.dustTiny, 1)); - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.Naquadria.getDustTiny(1))) { - tRecipe.mOutputs[i] = GTUtility - .copyAmount(tRecipe.mOutputs[i].stackSize * 2, naquadriaEarth.get(OrePrefixes.dustTiny, 1)); - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.Naquadah.getDust(1))) { - tRecipe.mOutputs[i] = GTUtility - .copyAmount(tRecipe.mOutputs[i].stackSize * 2, naquadahEarth.get(OrePrefixes.dust, 1)); - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.NaquadahEnriched.getDust(1))) { - tRecipe.mOutputs[i] = GTUtility.copyAmount( - tRecipe.mOutputs[i].stackSize * 2, - enrichedNaquadahEarth.get(OrePrefixes.dust, 1)); - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.Naquadria.getDust(1))) { - tRecipe.mOutputs[i] = GTUtility - .copyAmount(tRecipe.mOutputs[i].stackSize * 2, naquadriaEarth.get(OrePrefixes.dust, 1)); - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.Naquadah.getDustSmall(1))) { - tRecipe.mOutputs[i] = GTUtility - .copyAmount(tRecipe.mOutputs[i].stackSize * 2, naquadahEarth.get(OrePrefixes.dustSmall, 1)); - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.NaquadahEnriched.getDustSmall(1))) { - tRecipe.mOutputs[i] = GTUtility.copyAmount( - tRecipe.mOutputs[i].stackSize * 2, - enrichedNaquadahEarth.get(OrePrefixes.dustSmall, 1)); - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.Naquadria.getDustSmall(1))) { - tRecipe.mOutputs[i] = GTUtility.copyAmount( - tRecipe.mOutputs[i].stackSize * 2, - naquadriaEarth.get(OrePrefixes.dustSmall, 1)); - - } else { - continue; - } - modified = true; - } - if (modified) { - GTLog.err.println("recipe edited: " + displayRecipe(tRecipe)); - reAdd.add(tRecipe); - remove.add(recipe); - } - break; - - } - - } - RecipeMaps.centrifugeNonCellRecipes.getBackend() - .removeRecipes(remove); - reAdd.forEach(RecipeMaps.centrifugeNonCellRecipes::add); - RecipeMaps.centrifugeNonCellRecipes.getBackend() - .reInit(); - - GTLog.out.print(GoodGenerator.MOD_ID + ": Replace " + remove.size() + "! "); - - remove.clear(); - reAdd.clear(); - - GTLog.out.print("Centrifuge (PA) done!\n"); - // For Hammer for (GTRecipe recipe : RecipeMaps.hammerRecipes.getAllRecipes()) { ItemStack input = recipe.mInputs[0]; diff --git a/src/main/java/gregtech/api/recipe/RecipeMaps.java b/src/main/java/gregtech/api/recipe/RecipeMaps.java index 197c15875d9..7f81e58370c 100644 --- a/src/main/java/gregtech/api/recipe/RecipeMaps.java +++ b/src/main/java/gregtech/api/recipe/RecipeMaps.java @@ -79,7 +79,6 @@ import gregtech.api.util.GTOreDictUnificator; import gregtech.api.util.GTRecipe; import gregtech.api.util.GTRecipeConstants; -import gregtech.api.util.GTRecipeMapUtil; import gregtech.api.util.GTUtility; import gregtech.common.tileentities.machines.multi.purification.PurifiedWaterHelpers; import gregtech.nei.formatter.FuelSpecialValueFormatter; @@ -1098,25 +1097,6 @@ && isArrayEmptyOrNull(b.getFluidOutputs()) .maxIO(1, 1, 0, 0) .neiSpecialInfoFormatter(FuelSpecialValueFormatter.INSTANCE) .build(); - public static final RecipeMap electrolyzerNonCellRecipes = RecipeMapBuilder - .of("gt.recipe.largeelectrolyzer") - .maxIO(1, 6, 1, 6) - .disableRegisterNEI() - .recipeEmitter(GTRecipeMapUtil::buildRecipeForMultiblock) - .build(); - public static final RecipeMap centrifugeNonCellRecipes = RecipeMapBuilder - .of("gt.recipe.largecentrifuge") - .maxIO(2, 6, 1, 6) - .disableOptimize() - .disableRegisterNEI() - .recipeEmitter(GTRecipeMapUtil::buildRecipeForMultiblock) - .build(); - public static final RecipeMap mixerNonCellRecipes = RecipeMapBuilder.of("gt.recipe.largemixer") - .maxIO(9, 4, 6, 4) - .disableOptimize() - .disableRegisterNEI() - .recipeEmitter(GTRecipeMapUtil::buildRecipeForMultiblockNoCircuit) - .build(); public static final RecipeMap largeBoilerFakeFuels = RecipeMapBuilder .of("gt.recipe.largeboilerfakefuels", LargeBoilerFuelBackend::new) .maxIO(1, 1, 0, 0) @@ -1230,9 +1210,6 @@ && isArrayEmptyOrNull(b.getFluidOutputs()) .build(); static { - RecipeMaps.centrifugeRecipes.addDownstream(RecipeMaps.centrifugeNonCellRecipes.deepCopyInput()); - RecipeMaps.mixerRecipes.addDownstream(RecipeMaps.mixerNonCellRecipes.deepCopyInput()); - RecipeMaps.electrolyzerRecipes.addDownstream(RecipeMaps.electrolyzerNonCellRecipes.deepCopyInput()); RecipeMaps.dieselFuels.addDownstream( IRecipeMap.newRecipeMap( b -> b.build() diff --git a/src/main/java/gregtech/api/util/GTForestryCompat.java b/src/main/java/gregtech/api/util/GTForestryCompat.java index ca61c955c7e..86eaa519e75 100644 --- a/src/main/java/gregtech/api/util/GTForestryCompat.java +++ b/src/main/java/gregtech/api/util/GTForestryCompat.java @@ -7,6 +7,8 @@ import java.util.Map; +import net.minecraft.init.Items; +import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import forestry.api.recipes.ICentrifugeRecipe; @@ -170,10 +172,13 @@ public static void transferCentrifugeRecipes() { public static void transferSqueezerRecipes() { try { for (ISqueezerRecipe tRecipe : RecipeManagers.squeezerManager.recipes()) { - if ((tRecipe.getResources().length == 1) && (tRecipe.getFluidOutput() != null) - && (tRecipe.getResources()[0] != null)) { + ItemStack[] resources = tRecipe.getResources(); + if ((resources.length == 1) && (tRecipe.getFluidOutput() != null) && (resources[0] != null)) { + Item input = resources[0].getItem(); + if (input == Items.pumpkin_seeds || input == Items.melon_seeds || input == Items.wheat_seeds) + return; GTRecipeBuilder recipeBuilder = GTValues.RA.stdBuilder(); - recipeBuilder.itemInputs(tRecipe.getResources()[0]); + recipeBuilder.itemInputs(resources[0]); if (tRecipe.getRemnants() != null) { recipeBuilder.itemOutputs(tRecipe.getRemnants()) .outputChances((int) (tRecipe.getRemnantsChance() * 10000)); diff --git a/src/main/java/gregtech/common/items/ItemDrop.java b/src/main/java/gregtech/common/items/ItemDrop.java index 1f56b792425..bac555934d0 100644 --- a/src/main/java/gregtech/common/items/ItemDrop.java +++ b/src/main/java/gregtech/common/items/ItemDrop.java @@ -107,12 +107,6 @@ public void initDropsRecipes() { ItemStack tDrop; tDrop = getStackForType(DropType.OIL); - addProcessLV( - tDrop, - Materials.OilHeavy.getFluid(100L), - GTModHandler.getModItem(Forestry.ID, "propolis", 1L, 0), - 3000, - 8); RecipeManagers.squeezerManager.addRecipe( 40, new ItemStack[] { tDrop }, @@ -120,12 +114,6 @@ public void initDropsRecipes() { GTModHandler.getModItem(Forestry.ID, "propolis", 1L, 0), 30); tDrop = getStackForType(DropType.COOLANT); - addProcessLV( - tDrop, - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 100), - GTModHandler.getModItem(MagicBees.ID, "propolis", 1L, 0), - 3000, - 8); RecipeManagers.squeezerManager.addRecipe( 40, new ItemStack[] { tDrop }, @@ -133,12 +121,6 @@ public void initDropsRecipes() { GTModHandler.getModItem(MagicBees.ID, "propolis", 1L, 0), 30); tDrop = getStackForType(DropType.HOT_COOLANT); - addProcessLV( - tDrop, - new FluidStack(FluidRegistry.getFluid("ic2hotcoolant"), 100), - GTModHandler.getModItem(MagicBees.ID, "propolis", 1L, 2), - 3000, - 8); RecipeManagers.squeezerManager.addRecipe( 40, new ItemStack[] { tDrop }, @@ -153,13 +135,6 @@ public void initDropsRecipes() { 1500, 48); tDrop = getStackForType(DropType.LAPIS); - addProcessLV( - tDrop, - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 200), - GTModHandler.getModItem(MagicBees.ID, "propolis", 1L, 3), - 5000, - 1200, - 2); RecipeManagers.squeezerManager.addRecipe( 400, new ItemStack[] { tDrop }, @@ -174,17 +149,10 @@ public void initDropsRecipes() { 3000, 8); tDrop = getStackForType(DropType.OXYGEN); - addProcessLV( - tDrop, - new FluidStack(FluidRegistry.getFluid("liquidoxygen"), 100), - GTModHandler.getModItem(ExtraBees.ID, "propolis", 1L, 2), - 250, - 1200, - 8); RecipeManagers.squeezerManager.addRecipe( 400, new ItemStack[] { tDrop }, - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 100), + new FluidStack(FluidRegistry.getFluid("liquidoxygen"), 100), GTModHandler.getModItem(ExtraBees.ID, "propolis", 1L, 2), 30); tDrop = getStackForType(DropType.ENDERGOO); diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrushedOre.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrushedOre.java index 1f303ad0da5..debf0598845 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrushedOre.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrushedOre.java @@ -75,6 +75,10 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic break; } + // Blacklist materials which are handled by Werkstoff loader + if (aMaterial == Materials.Salt || aMaterial == Materials.RockSalt || aMaterial == Materials.Spodumene) + return; + switch (aMaterial.mName) { case "Tanzanite", "Sapphire", "Olivine", "GreenSapphire", "Opal", "Amethyst", "Emerald", "Ruby", "Amber", "Diamond", "FoolsRuby", "BlueTopaz", "GarnetRed", "Topaz", "Jasper", "GarnetYellow" -> GTValues.RA .stdBuilder() diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingGem.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingGem.java index e117d956bdd..32430d02bdb 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingGem.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingGem.java @@ -49,6 +49,9 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic boolean aSpecialRecipeReq = aMaterial.contains(SubTag.MORTAR_GRINDABLE); boolean aFuelPower = aMaterial.mFuelPower > 0; + // Blacklist materials which are handled by Werkstoff loader + if (aMaterial == Materials.Salt || aMaterial == Materials.RockSalt || aMaterial == Materials.Spodumene) return; + switch (aPrefix) { case gem -> { // fuel recipes diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingLens.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingLens.java index 95762628185..029a227ad55 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingLens.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingLens.java @@ -28,6 +28,9 @@ public ProcessingLens() { @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) { + // Blacklist materials which are handled by Werkstoff loader + if (aMaterial == Materials.Salt || aMaterial == Materials.RockSalt || aMaterial == Materials.Spodumene) return; + switch (aMaterial.mName) { case "Diamond", "Glass" -> { GTValues.RA.stdBuilder() diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java index e6a74aac19c..562b40d82e6 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java @@ -23,9 +23,16 @@ public ProcessingPlank() { OrePrefixes.plank.add(this); } + // Gross nasty hack to prevent spam registry of oredicted colored woods + private boolean registeredEXU = false; + @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) { + if (aModName != null && aModName.equals("ExtraUtilities")) { + if (registeredEXU) return; + else registeredEXU = true; + } if (aOreDictName.startsWith("plankWood")) { GTValues.RA.stdBuilder() .itemInputs(GTUtility.copyAmount(1, aStack)) diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStick.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStick.java index d04ffd11902..3949b2f3afb 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStick.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStick.java @@ -29,6 +29,9 @@ public ProcessingStick() { @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) { + // Blacklist materials which are handled by Werkstoff loader + if (aMaterial == Materials.Salt || aMaterial == Materials.RockSalt || aMaterial == Materials.Spodumene) return; + if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GTModHandler.addCraftingRecipe( GTOreDictUnificator.get(OrePrefixes.springSmall, aMaterial, 1L), diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStone.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStone.java index da21829d0c2..e611d504b0b 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStone.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStone.java @@ -228,6 +228,7 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic .duration(10 * SECONDS) .eut(TierEU.RECIPE_LV) .addTo(cutterRecipes); + break; case "Basalt": GTValues.RA.stdBuilder() .itemInputs(GTUtility.copyAmount(1, aStack), GTUtility.getIntegratedCircuit(3)) diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingTransforming.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingTransforming.java index 8d72819d267..de436ae004f 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingTransforming.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingTransforming.java @@ -37,7 +37,7 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic { if (GTOreDictUnificator.get(aPrefix, Materials.WoodSealed, 1L) != null) { GTValues.RA.stdBuilder() - .itemInputs(GTUtility.copyAmount(1, aStack)) + .itemInputs(GTOreDictUnificator.get(aPrefix, Materials.Wood, 1L)) .itemOutputs(GTOreDictUnificator.get(aPrefix, Materials.WoodSealed, 1L)) .fluidInputs( Materials.SeedOil @@ -53,7 +53,7 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic { if (GTOreDictUnificator.get(aPrefix, Materials.FierySteel, 1L) != null) { GTValues.RA.stdBuilder() - .itemInputs(GTUtility.copyAmount(1, aStack)) + .itemInputs(GTOreDictUnificator.get(aPrefix, Materials.Iron, 1L)) .itemOutputs(GTOreDictUnificator.get(aPrefix, Materials.FierySteel, 1L)) .fluidInputs( Materials.FierySteel @@ -68,7 +68,7 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic { if (GTOreDictUnificator.get(aPrefix, Materials.IronMagnetic, 1L) != null) { GTValues.RA.stdBuilder() - .itemInputs(GTUtility.copyAmount(1, aStack)) + .itemInputs(GTOreDictUnificator.get(aPrefix, Materials.Iron, 1L)) .itemOutputs(GTOreDictUnificator.get(aPrefix, Materials.IronMagnetic, 1L)) .duration(((int) Math.max(16L, aPrefix.mMaterialAmount * 128L / GTValues.M)) * TICKS) .eut((int) TierEU.LV / 2) @@ -81,7 +81,7 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic { if (GTOreDictUnificator.get(aPrefix, Materials.FierySteel, 1L) != null) { GTValues.RA.stdBuilder() - .itemInputs(GTUtility.copyAmount(1, aStack)) + .itemInputs(GTOreDictUnificator.get(aPrefix, Materials.WroughtIron, 1L)) .itemOutputs(GTOreDictUnificator.get(aPrefix, Materials.FierySteel, 1L)) .fluidInputs( Materials.FierySteel @@ -96,7 +96,7 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic { if (GTOreDictUnificator.get(aPrefix, Materials.IronMagnetic, 1L) != null) { GTValues.RA.stdBuilder() - .itemInputs(GTUtility.copyAmount(1, aStack)) + .itemInputs(GTOreDictUnificator.get(aPrefix, Materials.WroughtIron, 1L)) .itemOutputs(GTOreDictUnificator.get(aPrefix, Materials.IronMagnetic, 1L)) .duration(((int) Math.max(16L, aPrefix.mMaterialAmount * 128L / GTValues.M)) * TICKS) .eut((int) TierEU.LV / 2) @@ -109,7 +109,7 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic { if (GTOreDictUnificator.get(aPrefix, Materials.FierySteel, 1L) != null) { GTValues.RA.stdBuilder() - .itemInputs(GTUtility.copyAmount(1, aStack)) + .itemInputs(GTOreDictUnificator.get(aPrefix, Materials.Steel, 1L)) .itemOutputs(GTOreDictUnificator.get(aPrefix, Materials.FierySteel, 1L)) .fluidInputs( Materials.FierySteel @@ -124,7 +124,7 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic { if (GTOreDictUnificator.get(aPrefix, Materials.SteelMagnetic, 1L) != null) { GTValues.RA.stdBuilder() - .itemInputs(GTUtility.copyAmount(1, aStack)) + .itemInputs(GTOreDictUnificator.get(aPrefix, Materials.Steel, 1L)) .itemOutputs(GTOreDictUnificator.get(aPrefix, Materials.SteelMagnetic, 1L)) .duration(((int) Math.max(16L, aPrefix.mMaterialAmount * 128L / GTValues.M)) * TICKS) .eut((int) TierEU.LV / 2) @@ -137,7 +137,7 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic { if (GTOreDictUnificator.get(aPrefix, Materials.NeodymiumMagnetic, 1L) != null) { GTValues.RA.stdBuilder() - .itemInputs(GTUtility.copyAmount(1, aStack)) + .itemInputs(GTOreDictUnificator.get(aPrefix, Materials.Neodymium, 1L)) .itemOutputs(GTOreDictUnificator.get(aPrefix, Materials.NeodymiumMagnetic, 1L)) .duration(((int) Math.max(16L, aPrefix.mMaterialAmount * 128L / GTValues.M)) * TICKS) .eut((int) TierEU.HV / 2) @@ -149,7 +149,7 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic { if (GTOreDictUnificator.get(aPrefix, Materials.SamariumMagnetic, 1L) != null) { GTValues.RA.stdBuilder() - .itemInputs(GTUtility.copyAmount(1, aStack)) + .itemInputs(GTOreDictUnificator.get(aPrefix, Materials.Samarium, 1L)) .itemOutputs(GTOreDictUnificator.get(aPrefix, Materials.SamariumMagnetic, 1L)) .duration(((int) Math.max(16L, aPrefix.mMaterialAmount * 128L / GTValues.M)) * TICKS) .eut((int) TierEU.IV / 2) @@ -162,7 +162,7 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic { if (GTOreDictUnificator.get(aPrefix, Materials.TengamAttuned, 1L) != null) { GTValues.RA.stdBuilder() - .itemInputs(GTUtility.copyAmount(1, aStack)) + .itemInputs(GTOreDictUnificator.get(aPrefix, Materials.TengamPurified, 1L)) .itemOutputs(GTOreDictUnificator.get(aPrefix, Materials.TengamAttuned, 1L)) .duration(((int) Math.max(16L, aPrefix.mMaterialAmount * 128L / GTValues.M)) * TICKS) .eut((int) TierEU.RECIPE_UHV) diff --git a/src/main/java/gregtech/loaders/postload/ProcessingArrayRecipeLoader.java b/src/main/java/gregtech/loaders/postload/ProcessingArrayRecipeLoader.java index 9525041fcc0..184e1571e18 100644 --- a/src/main/java/gregtech/loaders/postload/ProcessingArrayRecipeLoader.java +++ b/src/main/java/gregtech/loaders/postload/ProcessingArrayRecipeLoader.java @@ -3,6 +3,7 @@ import gregtech.api.enums.SoundResource; import gregtech.api.recipe.RecipeMaps; import gregtech.api.util.ProcessingArrayManager; +import gtPlusPlus.api.recipe.GTPPRecipeMaps; public class ProcessingArrayRecipeLoader { @@ -35,7 +36,7 @@ public static void registerDefaultGregtechMaps() { ProcessingArrayManager.addRecipeMapToPA("basicmachine.canner", RecipeMaps.cannerRecipes); ProcessingArrayManager.addSoundResourceToPA("basicmachine.canner", SoundResource.IC2_MACHINES_EXTRACTOR_OP); // Centrifuge - ProcessingArrayManager.addRecipeMapToPA("basicmachine.centrifuge", RecipeMaps.centrifugeNonCellRecipes); + ProcessingArrayManager.addRecipeMapToPA("basicmachine.centrifuge", GTPPRecipeMaps.centrifugeNonCellRecipes); ProcessingArrayManager.addSoundResourceToPA("basicmachine.centrifuge", SoundResource.NONE); // Chemical Bath ProcessingArrayManager.addRecipeMapToPA("basicmachine.chemicalbath", RecipeMaps.chemicalBathRecipes); @@ -60,7 +61,7 @@ public static void registerDefaultGregtechMaps() { ProcessingArrayManager .addSoundResourceToPA("basicmachine.distillery", SoundResource.GT_MACHINES_DISTILLERY_LOOP); // Electrolyzer - ProcessingArrayManager.addRecipeMapToPA("basicmachine.electrolyzer", RecipeMaps.electrolyzerNonCellRecipes); + ProcessingArrayManager.addRecipeMapToPA("basicmachine.electrolyzer", GTPPRecipeMaps.electrolyzerNonCellRecipes); ProcessingArrayManager .addSoundResourceToPA("basicmachine.electrolyzer", SoundResource.IC2_MACHINES_MAGNETIZER_LOOP); // Extractor @@ -115,7 +116,7 @@ public static void registerDefaultGregtechMaps() { ProcessingArrayManager .addSoundResourceToPA("basicmachine.microwave", SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP); // Mixer - ProcessingArrayManager.addRecipeMapToPA("basicmachine.mixer", RecipeMaps.mixerNonCellRecipes); + ProcessingArrayManager.addRecipeMapToPA("basicmachine.mixer", GTPPRecipeMaps.mixerNonCellRecipes); ProcessingArrayManager.addSoundResourceToPA("basicmachine.mixer", SoundResource.NONE); // Ore Washer ProcessingArrayManager.addRecipeMapToPA("basicmachine.orewasher", RecipeMaps.oreWasherRecipes); diff --git a/src/main/java/gregtech/loaders/postload/recipes/FermenterRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/FermenterRecipes.java index 74b1e0e78e8..b3605375bd2 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/FermenterRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/FermenterRecipes.java @@ -66,13 +66,6 @@ public void run() { .eut(2) .addTo(fermentingRecipes); - GTValues.RA.stdBuilder() - .fluidInputs(getFluidStack("potion.reedwater", 50)) - .fluidOutputs(getFluidStack("potion.rum", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(fermentingRecipes); - GTValues.RA.stdBuilder() .fluidInputs(getFluidStack("potion.rum", 50)) .fluidOutputs(getFluidStack("potion.piratebrew", 10)) diff --git a/src/main/java/gregtech/loaders/postload/recipes/FluidSolidifierRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/FluidSolidifierRecipes.java index d3197b6f307..69a82711e9d 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/FluidSolidifierRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/FluidSolidifierRecipes.java @@ -1,7 +1,6 @@ package gregtech.loaders.postload.recipes; import static gregtech.api.enums.Mods.IndustrialCraft2; -import static gregtech.api.enums.Mods.NewHorizonsCoreMod; import static gregtech.api.enums.Mods.Railcraft; import static gregtech.api.enums.Mods.Thaumcraft; import static gregtech.api.recipe.RecipeMaps.fluidSolidifierRecipes; @@ -152,14 +151,6 @@ public void run() { .eut(4) .addTo(fluidSolidifierRecipes); - GTValues.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Plate.get(0L)) - .itemOutputs(GTOreDictUnificator.get(OrePrefixes.plate, Materials.Glass, 1L)) - .fluidInputs(Materials.Glass.getMolten(144L)) - .duration(12 * TICKS) - .eut(4) - .addTo(fluidSolidifierRecipes); - GTValues.RA.stdBuilder() .itemInputs(ItemList.Shape_Mold_Bottle.get(0L)) .itemOutputs(ItemList.Bottle_Empty.get(1L)) @@ -232,14 +223,6 @@ public void run() { .eut(16) .addTo(fluidSolidifierRecipes); - GTValues.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Plate.get(0L)) - .itemOutputs(getModItem(NewHorizonsCoreMod.ID, "item.ReinforcedGlassPlate", 1L, 0)) - .fluidInputs(Materials.ReinforceGlass.getMolten(72)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(fluidSolidifierRecipes); - GTValues.RA.stdBuilder() .itemInputs(ItemList.Shape_Mold_Block.get(0L)) .itemOutputs(getModItem(IndustrialCraft2.ID, "blockAlloyGlass", 1L)) diff --git a/src/main/java/gregtech/loaders/postload/recipes/VacuumFreezerRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/VacuumFreezerRecipes.java index 89f1fc61562..58f578c488a 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/VacuumFreezerRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/VacuumFreezerRecipes.java @@ -336,34 +336,6 @@ public void run() { .eut(TierEU.RECIPE_LuV) .addTo(vacuumFreezerRecipes); - GTValues.RA.stdBuilder() - .itemInputs(GTOreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Helium, 1L)) - .itemOutputs(GTOreDictUnificator.get(OrePrefixes.cell, Materials.Helium, 1L)) - .duration(5 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(vacuumFreezerRecipes); - - GTValues.RA.stdBuilder() - .itemInputs(GTOreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Nitrogen, 1L)) - .itemOutputs(GTOreDictUnificator.get(OrePrefixes.cell, Materials.Nitrogen, 1L)) - .duration(1 * SECONDS + 8 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(vacuumFreezerRecipes); - - GTValues.RA.stdBuilder() - .itemInputs(GTOreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Oxygen, 1L)) - .itemOutputs(GTOreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(vacuumFreezerRecipes); - - GTValues.RA.stdBuilder() - .itemInputs(GTOreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Radon, 1L)) - .itemOutputs(GTOreDictUnificator.get(OrePrefixes.cell, Materials.Radon, 1L)) - .duration(5 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(vacuumFreezerRecipes); - GTValues.RA.stdBuilder() .fluidInputs(Materials.Boron.getPlasma(144L)) .fluidOutputs(Materials.Boron.getMolten(144L)) diff --git a/src/main/java/gtnhlanth/loader/BotRecipes.java b/src/main/java/gtnhlanth/loader/BotRecipes.java index 94c1cf9eb63..f1a73cf82c6 100644 --- a/src/main/java/gtnhlanth/loader/BotRecipes.java +++ b/src/main/java/gtnhlanth/loader/BotRecipes.java @@ -123,10 +123,9 @@ public static void addGTRecipe() { .metadata(COIL_HEAT, 1000) .addTo(blastFurnaceRecipes); - WO3.stackSize = 8; // 2WO3 + 3C = 2W + 3CO2 GTValues.RA.stdBuilder() - .itemInputs(WO3, Materials.Carbon.getDust(3)) + .itemInputs(TungstenTrioxide.get(dust, 8), Materials.Carbon.getDust(3)) .itemOutputs(GTOreDictUnificator.get(ingotHot, Materials.Tungsten, 2L)) .fluidOutputs(Materials.CarbonDioxide.getGas(3000)) .duration(6 * MINUTES + 40 * SECONDS) diff --git a/src/main/java/gtnhlanth/loader/RecipeLoader.java b/src/main/java/gtnhlanth/loader/RecipeLoader.java index 3bc69c26755..28e88ef8312 100644 --- a/src/main/java/gtnhlanth/loader/RecipeLoader.java +++ b/src/main/java/gtnhlanth/loader/RecipeLoader.java @@ -6,20 +6,17 @@ import static gregtech.api.recipe.RecipeMaps.assemblerRecipes; import static gregtech.api.recipe.RecipeMaps.autoclaveRecipes; import static gregtech.api.recipe.RecipeMaps.blastFurnaceRecipes; -import static gregtech.api.recipe.RecipeMaps.centrifugeNonCellRecipes; import static gregtech.api.recipe.RecipeMaps.centrifugeRecipes; import static gregtech.api.recipe.RecipeMaps.chemicalBathRecipes; import static gregtech.api.recipe.RecipeMaps.chemicalReactorRecipes; import static gregtech.api.recipe.RecipeMaps.crackingRecipes; import static gregtech.api.recipe.RecipeMaps.distillationTowerRecipes; import static gregtech.api.recipe.RecipeMaps.electroMagneticSeparatorRecipes; -import static gregtech.api.recipe.RecipeMaps.electrolyzerNonCellRecipes; import static gregtech.api.recipe.RecipeMaps.electrolyzerRecipes; import static gregtech.api.recipe.RecipeMaps.fluidSolidifierRecipes; import static gregtech.api.recipe.RecipeMaps.hammerRecipes; import static gregtech.api.recipe.RecipeMaps.laserEngraverRecipes; import static gregtech.api.recipe.RecipeMaps.maceratorRecipes; -import static gregtech.api.recipe.RecipeMaps.mixerNonCellRecipes; import static gregtech.api.recipe.RecipeMaps.mixerRecipes; import static gregtech.api.recipe.RecipeMaps.multiblockChemicalReactorRecipes; import static gregtech.api.recipe.RecipeMaps.oreWasherRecipes; @@ -532,15 +529,6 @@ public static void loadAccelerator() { .eut(TierEU.RECIPE_EV) .addTo(multiblockChemicalReactorRecipes); - /* - * GT_Values.RA.stdBuilder() - * .fluidInputs(Materials.Nitrogen.getPlasma(4000), Materials.Silane.getFluid(2000)) - * .fluidOutputs(WerkstoffMaterialPool.NitrogenPlasmaSilaneMix.getFluidOrGas(6000)) - * .duration(20 * GTRecipeBuilder.SECONDS) - * .eut(7680) - * .addTo(mixerNonCellRecipes); - */ - GTValues.RA.stdBuilder() .fluidInputs(Materials.Nitrogen.getPlasma(4000)) .itemInputs(Materials.Silane.getCells(2)) @@ -3167,12 +3155,6 @@ public static void loadLanthanideRecipes() { .eut(TierEU.RECIPE_LV) .duration(5 * SECONDS) .addTo(mixerRecipes); - GTValues.RA.stdBuilder() - .itemInputs(SamariumChloride.get(OrePrefixes.dust, 2), Materials.Sodium.getDust(1)) - .itemOutputs(SamariumChlorideSodiumChlorideBlend.get(OrePrefixes.dust, 3)) - .eut(TierEU.RECIPE_LV) - .duration(5 * SECONDS) - .addTo(mixerNonCellRecipes); // 6 SamariumChlorideSodiumChlorideBlend =IV@1s= 1 SamariumDust + 1 SodiumDust + 2/9 RarestEarthResidue + 4B // Chlorine @@ -3845,105 +3827,6 @@ public static void removeCeriumCentrifuge() { GTLog.out.println(Tags.MODID + ": centrifuge recipes done!"); } - public static void removeCeriumCentrifugeNonCell() { - - HashSet remove = new HashSet<>(5000); - HashSet reAdd = new HashSet<>(5000); - GTLog.out.println(Tags.MODID + ": processing centrifuge non cell recipes"); - - for (GTRecipe recipe : centrifugeNonCellRecipes.getAllRecipes()) { - ItemStack input = null; - if (recipe.mInputs.length > 0) input = recipe.mInputs[0]; - if (!GTUtility.isStackValid(input)) { - continue; - } - int[] oreDict = OreDictionary.getOreIDs(input); - for (int oreDictID : oreDict) { - final String oreName = OreDictionary.getOreName(oreDictID); - if (!((oreName.startsWith("dust") && (!oreName.contains("Dephosphated"))))) { - continue; - } - GTRecipe tRecipe = recipe.copy(); - boolean modified = false; - for (int i = 0; i < tRecipe.mOutputs.length; i++) { - if (!GTUtility.isStackValid(tRecipe.mOutputs[i])) continue; - if (tRecipe.mOutputs[i].isItemEqual(Materials.Cerium.getDustTiny(1))) { - tRecipe.mOutputs[i] = GTUtility.copyAmount( - tRecipe.mOutputs[i].stackSize * 2, - WerkstoffMaterialPool.CeriumRichMixture.get(OrePrefixes.dustTiny, 1)); - GTLog.out.println( - Tags.MODID + ": recipe with input oredict: " - + oreName - + " get Cerium tiny dust turned into Cerium Rich Mixture tiny dust."); - modified = true; - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.Cerium.getDust(1))) { - tRecipe.mOutputs[i] = GTUtility.copyAmount( - tRecipe.mOutputs[i].stackSize * 2, - WerkstoffMaterialPool.CeriumRichMixture.get(OrePrefixes.dust, 1)); - GTLog.out.println( - Tags.MODID + ": recipe with input oredict: " - + oreName - + " get Cerium dust turned into Cerium Rich Mixture dust."); - modified = true; - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.Cerium.getDustSmall(1))) { - tRecipe.mOutputs[i] = GTUtility.copyAmount( - tRecipe.mOutputs[i].stackSize * 2, - WerkstoffMaterialPool.CeriumRichMixture.get(OrePrefixes.dustSmall, 1)); - GTLog.out.println( - Tags.MODID + ": recipe with input oredict: " - + oreName - + " get Cerium small dust turned into Cerium Rich Mixture small dust."); - modified = true; - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.Samarium.getDustTiny(1))) { - tRecipe.mOutputs[i] = GTUtility.copyAmount( - tRecipe.mOutputs[i].stackSize * 2, - WerkstoffMaterialPool.SamariumOreConcentrate.get(OrePrefixes.dustTiny, 1)); - GTLog.out.println( - Tags.MODID + ": recipe with input oredict: " - + oreName - + " get Samarium tiny dust turned into Samarium Ore Concentrate tiny dust."); - modified = true; - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.Samarium.getDust(1))) { - tRecipe.mOutputs[i] = GTUtility.copyAmount( - tRecipe.mOutputs[i].stackSize * 2, - WerkstoffMaterialPool.SamariumOreConcentrate.get(OrePrefixes.dust, 1)); - GTLog.out.println( - Tags.MODID + ": recipe with input oredict: " - + oreName - + " get Samarium dust turned into Samarium Ore Concentrate dust."); - modified = true; - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.Samarium.getDustSmall(1))) { - tRecipe.mOutputs[i] = GTUtility.copyAmount( - tRecipe.mOutputs[i].stackSize * 2, - WerkstoffMaterialPool.SamariumOreConcentrate.get(OrePrefixes.dustSmall, 1)); - GTLog.out.println( - Tags.MODID + ": recipe with input oredict: " - + oreName - + " get Samarium small dust turned into Samarium Ore Concentrate small dust."); - modified = true; - } - } - if (modified) { - reAdd.add(tRecipe); - remove.add(recipe); - } - break; - } - } - - GTLog.out.println(Tags.MODID + ": regenerating centrifuge non cell recipes"); - centrifugeNonCellRecipes.getBackend() - .removeRecipes(remove); - reAdd.forEach(centrifugeNonCellRecipes::add); - centrifugeNonCellRecipes.getBackend() - .reInit(); - - remove.clear(); - reAdd.clear(); - - GTLog.out.println(Tags.MODID + ": centrifuge non cell recipes done!"); - } - public static void removeCeriumHammer() { HashSet remove = new HashSet<>(5000); @@ -4077,74 +3960,6 @@ public static void removeCeriumElectrolyzer() { GTLog.out.println(Tags.MODID + ": Electrolyzer recipe done!"); } - public static void removeCeriumElectrolyzerNonCell() { - HashSet remove = new HashSet<>(5000); - HashSet reAdd = new HashSet<>(5000); - GTLog.out.println(Tags.MODID + ": processing electrolyzer non cell recipes"); - for (GTRecipe recipe : electrolyzerNonCellRecipes.getAllRecipes()) { - for (ItemStack input : recipe.mInputs) { - if (!GTUtility.isStackValid(input)) { - continue; - } - int[] oreDict = OreDictionary.getOreIDs(input); - for (int oreDictID : oreDict) { - final String oreName = OreDictionary.getOreName(oreDictID); - if (!(oreName.startsWith("dust") - && (oreName.equals("dustHibonite") || oreName.equals("dustLanthaniteCe") - || oreName.equals("dustZirconolite") - || oreName.equals("dustYttrocerite") - || oreName.equals("dustXenotime") - || oreName.equals("dustBastnasite") - || oreName.equals("dustFlorencite")))) { - continue; - } - - GTRecipe tRecipe = recipe.copy(); - boolean modified = false; - for (int i = 0; i < tRecipe.mOutputs.length; i++) { - if (!GTUtility.isStackValid(tRecipe.mOutputs[i])) continue; - if (tRecipe.mOutputs[i].isItemEqual(Materials.Cerium.getDust(1))) { - tRecipe.mOutputs[i] = GTUtility.copyAmount( - tRecipe.mOutputs[i].stackSize, - WerkstoffMaterialPool.CeriumRichMixture.get(OrePrefixes.dust, 1)); - GTLog.out.println( - Tags.MODID + ": recipe with input oredict: " - + oreName - + " get Cerium dust turned into Cerium Rich Mixture dust."); - modified = true; - } else if (tRecipe.mOutputs[i].isItemEqual(Materials.Samarium.getDust(1))) { - tRecipe.mOutputs[i] = GTUtility.copyAmount( - tRecipe.mOutputs[i].stackSize, - WerkstoffMaterialPool.SamariumOreConcentrate.get(OrePrefixes.dust, 1)); - GTLog.out.println( - Tags.MODID + ": recipe with input oredict: " - + oreName - + " get Samarium dust turned into Samarium Ore Concentrate dust."); - modified = true; - } - } - if (modified) { - reAdd.add(tRecipe); - remove.add(recipe); - } - break; - } - } - } - - GTLog.out.println(Tags.MODID + ": regenerating electrolyzer non cell recipes"); - electrolyzerNonCellRecipes.getBackend() - .removeRecipes(remove); - reAdd.forEach(electrolyzerNonCellRecipes::add); - electrolyzerNonCellRecipes.getBackend() - .reInit(); - - remove.clear(); - reAdd.clear(); - - GTLog.out.println(Tags.MODID + ": Electrolyzer non cell recipes done!"); - } - public static void removeCeriumSimpleWasher() { HashSet remove = new HashSet<>(5000); HashSet reAdd = new HashSet<>(5000); @@ -4323,10 +4138,8 @@ public static void removeCeriumSources() { removeCeriumWasher(); removeCeriumThermalCentrifuge(); removeCeriumCentrifuge(); - removeCeriumCentrifugeNonCell(); removeCeriumHammer(); removeCeriumElectrolyzer(); - removeCeriumElectrolyzerNonCell(); removeCeriumSimpleWasher(); removeCeriumDehydrator(); removeCeriumChemicalBath();