aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/core/recipe
diff options
context:
space:
mode:
authorchochem <40274384+chochem@users.noreply.github.com>2023-09-10 01:00:27 +0100
committerGitHub <noreply@github.com>2023-09-10 01:00:27 +0100
commit87f5c9648088ad8c5683f0d9ce99fadcd8052aad (patch)
treed07647838351577700a43259368f547e0eba34e0 /src/main/java/gtPlusPlus/core/recipe
parent9cff98e7429fb320edbcc1d88b8f897b1fbf35da (diff)
downloadGT5-Unofficial-87f5c9648088ad8c5683f0d9ce99fadcd8052aad.tar.gz
GT5-Unofficial-87f5c9648088ad8c5683f0d9ce99fadcd8052aad.tar.bz2
GT5-Unofficial-87f5c9648088ad8c5683f0d9ce99fadcd8052aad.zip
Ra2ify gt++ Part 1 (#739)
* another deprecation * agrichem ra2 * dehydrator coils * nuclear chem * general recipes * generic chem RA2 and NO,NO2 cleanup * start with gregtech recipes * another deprecation * more gregtech recipes * dont deprecate ABS yet, was just a mistake * gregtech recipes * even more gregtech recipes * finish assembler recipes * fuels and fluid extraction * centrifuge and mixer * chem recipes * compression and maceration * remove duplicate bending * blast furnace (remove a broken one) * AL recipes * distilling * baseitemingots * bee recipes and some cleanup * coke things * random one * cryo and pyro
Diffstat (limited to 'src/main/java/gtPlusPlus/core/recipe')
-rw-r--r--src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java1438
-rw-r--r--src/main/java/gtPlusPlus/core/recipe/RECIPES_General.java73
2 files changed, 685 insertions, 826 deletions
diff --git a/src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java b/src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java
index 57a2ed8345..2ecaa0fd17 100644
--- a/src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java
+++ b/src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java
@@ -3,6 +3,41 @@ package gtPlusPlus.core.recipe;
import static gregtech.api.enums.Mods.Backpack;
import static gregtech.api.enums.Mods.Baubles;
import static gregtech.api.enums.Mods.NewHorizonsCoreMod;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sAssemblerRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sBlastRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sBrewingRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sCompressorRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sCutterRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sDistillationRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sDistilleryRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sExtruderRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sFusionRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sLatheRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sMaceratorRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sMixerRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes;
+import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sVacuumRecipes;
+import static gregtech.api.util.GT_RecipeBuilder.BUCKETS;
+import static gregtech.api.util.GT_RecipeBuilder.HOURS;
+import static gregtech.api.util.GT_RecipeBuilder.INGOTS;
+import static gregtech.api.util.GT_RecipeBuilder.MINUTES;
+import static gregtech.api.util.GT_RecipeBuilder.SECONDS;
+import static gregtech.api.util.GT_RecipeBuilder.TICKS;
+import static gregtech.api.util.GT_RecipeConstants.AssemblyLine;
+import static gregtech.api.util.GT_RecipeConstants.COIL_HEAT;
+import static gregtech.api.util.GT_RecipeConstants.FUEL_TYPE;
+import static gregtech.api.util.GT_RecipeConstants.FUEL_VALUE;
+import static gregtech.api.util.GT_RecipeConstants.FUSION_THRESHOLD;
+import static gregtech.api.util.GT_RecipeConstants.RESEARCH_ITEM;
+import static gregtech.api.util.GT_RecipeConstants.RESEARCH_TIME;
+import static gregtech.api.util.GT_RecipeConstants.UniversalChemical;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
@@ -16,6 +51,8 @@ import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.TierEU;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.util.GT_RecipeConstants;
+import gregtech.api.util.GT_Utility;
import gregtech.api.util.HotFuel;
import gregtech.api.util.ThermalFuel;
import gtPlusPlus.api.objects.Logger;
@@ -52,27 +89,21 @@ public class RECIPES_GREGTECH {
private static void execute() {
electrolyzerRecipes();
assemblerRecipes();
- fluidcannerRecipes();
+ fluidCannerRecipes();
distilleryRecipes();
extractorRecipes();
fluidExtractorRecipes();
- chemicalBathRecipes();
chemicalReactorRecipes();
dehydratorRecipes();
blastFurnaceRecipes();
largeChemReactorRecipes();
fusionRecipes();
- fissionFuelRecipes();
- autoclaveRecipes();
compressorRecipes();
mixerRecipes();
macerationRecipes();
centrifugeRecipes();
- benderRecipes();
cyclotronRecipes();
blastSmelterRecipes();
- sifterRecipes();
- electroMagneticSeperatorRecipes();
extruderRecipes();
cuttingSawRecipes();
breweryRecipes();
@@ -80,12 +111,11 @@ public class RECIPES_GREGTECH {
assemblyLineRecipes();
latheRecipes();
vacuumFreezerRecipes();
- fluidheaterRecipes();
+ fluidHeaterRecipes();
chemplantRecipes();
- packagerRecipes();
alloySmelterRecipes();
- /**
+ /*
* Special Recipe handlers
*/
RECIPES_SeleniumProcessing.init();
@@ -97,24 +127,9 @@ public class RECIPES_GREGTECH {
private static void alloySmelterRecipes() {
// Wood's Glass Laser Lens
- GT_Values.RA.addAlloySmelterRecipe(
- MISC_MATERIALS.WOODS_GLASS.getDust(5),
- ItemList.Shape_Mold_Ball.get(0),
- GregtechItemList.Laser_Lens_WoodsGlass.get(1),
- 20 * 300,
- MaterialUtils.getVoltageForTier(3));
- }
-
- private static void packagerRecipes() {}
-
- private static void implosionRecipes() {
-
- // GT_Values.RA.addImplosionRecipe(
- // ItemUtils.getSimpleStack(ModItems.itemSunnariumBit, 9),
- // 16,
- // ItemUtils.getSimpleStack(AdvancedSolarPanel.itemSunnariumPart, 1),
- // GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glowstone, 8));
-
+ GT_Values.RA.stdBuilder().itemInputs(MISC_MATERIALS.WOODS_GLASS.getDust(5), ItemList.Shape_Mold_Ball.get(0))
+ .itemOutputs(GregtechItemList.Laser_Lens_WoodsGlass.get(1)).noFluidInputs().noFluidOutputs()
+ .duration(5 * MINUTES).eut(TierEU.RECIPE_HV).addTo(sAlloySmelterRecipes);
}
private static void chemplantRecipes() {
@@ -127,8 +142,8 @@ public class RECIPES_GREGTECH {
// Advanced method for Nitric Acid Production
CORE.RA.addChemicalPlantRecipe(
new ItemStack[] { CI.getNumberedAdvancedCircuit(17), CI.getPinkCatalyst(0), },
- new FluidStack[] { FluidUtils.getFluidStack(GenericChem.Nitrogen_Dioxide, 4000),
- FluidUtils.getAir(4000), FluidUtils.getWater(2000), },
+ new FluidStack[] { Materials.NitrogenDioxide.getFluid(4000L), FluidUtils.getAir(4000),
+ FluidUtils.getWater(2000), },
new ItemStack[] {},
new FluidStack[] { FluidUtils.getFluidStack("nitricacid", 4000), },
10 * 20,
@@ -165,11 +180,10 @@ public class RECIPES_GREGTECH {
// 3NO2 + H2O = 2HNO3 + NO
CORE.RA.addChemicalPlantRecipe(
new ItemStack[] { CI.getNumberedAdvancedCircuit(16), CI.getPinkCatalyst(0), },
- new FluidStack[] { FluidUtils.getFluidStack(GenericChem.Nitrogen_Dioxide, 3000),
- FluidUtils.getDistilledWater(1000) },
+ new FluidStack[] { Materials.NitrogenDioxide.getFluid(3000L), FluidUtils.getDistilledWater(1000) },
new ItemStack[] {},
new FluidStack[] { FluidUtils.getFluidStack("nitricacid", 2000),
- FluidUtils.getFluidStack(GenericChem.Nitric_Oxide, 1000), },
+ Materials.NitricOxide.getFluid(1000L), },
10 * 20,
480,
2);
@@ -251,106 +265,113 @@ public class RECIPES_GREGTECH {
}
}
- private static void fluidheaterRecipes() {
- GT_Values.RA.addFluidHeaterRecipe(
- CI.getNumberedCircuit(20),
- FluidUtils.getWater(1000),
- FluidUtils.getHotWater(1000),
- 30,
- 30);
+ private static void fluidHeaterRecipes() {
+ GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(20)).noItemOutputs()
+ .fluidInputs(Materials.Water.getFluid(1000)).fluidOutputs(FluidUtils.getHotWater(1000))
+ .duration(1 * SECONDS + 10 * TICKS).eut(TierEU.RECIPE_LV).addTo(sFluidHeaterRecipes);
}
private static void vacuumFreezerRecipes() {
- GT_Values.RA.addVacuumFreezerRecipe(
- GregtechItemList.Bomb_Cast_Molten.get(1),
- GregtechItemList.Bomb_Cast_Set.get(1),
- 20 * 30);
+ GT_Values.RA.stdBuilder().itemInputs(GregtechItemList.Bomb_Cast_Molten.get(1))
+ .itemOutputs(GregtechItemList.Bomb_Cast_Set.get(1)).noFluidInputs().noFluidOutputs()
+ .duration(30 * SECONDS).eut(TierEU.RECIPE_MV).addTo(sVacuumRecipes);
}
private static void latheRecipes() {
-
- GT_Values.RA.addLatheRecipe(
- ALLOY.EGLIN_STEEL.getBlock(1),
- GregtechItemList.Bomb_Cast_Mold.get(1),
- null,
- 20 * 60 * 15,
- 120);
-
- GT_Values.RA.addLatheRecipe(
- GregtechItemList.Bomb_Cast_Set.get(1),
- GregtechItemList.Bomb_Cast_Broken.get(2),
- ItemUtils.getSimpleStack(ModItems.itemBombCasing, 2),
- 20 * 60 * 5,
- 30);
+ GT_Values.RA.stdBuilder().itemInputs(ALLOY.EGLIN_STEEL.getBlock(1))
+ .itemOutputs(GregtechItemList.Bomb_Cast_Mold.get(1)).noFluidInputs().noFluidOutputs()
+ .duration(15 * MINUTES).eut(TierEU.RECIPE_MV).addTo(sLatheRecipes);
+
+ GT_Values.RA.stdBuilder().itemInputs(GregtechItemList.Bomb_Cast_Set.get(1))
+ .itemOutputs(
+ GregtechItemList.Bomb_Cast_Broken.get(2),
+ ItemUtils.getSimpleStack(ModItems.itemBombCasing, 2))
+ .noFluidInputs().noFluidOutputs().duration(5 * MINUTES).eut(TierEU.RECIPE_LV).addTo(sLatheRecipes);
}
private static void fusionRecipes() {
- // Hypogen Creation
- GT_Values.RA.addFusionReactorRecipe(
- ELEMENT.STANDALONE.DRAGON_METAL.getFluidStack(144),
- ELEMENT.STANDALONE.RHUGNOR.getFluidStack(288),
- ELEMENT.STANDALONE.HYPOGEN.getFluidStack(36),
- 2048 * 4,
- MaterialUtils.getVoltageForTier(9),
- 600000000 * 2);
+ // Hypogen
+ GT_Values.RA.stdBuilder().noItemInputs().noItemOutputs()
+ .fluidInputs(
+ ELEMENT.STANDALONE.DRAGON_METAL.getFluidStack(144),
+ ELEMENT.STANDALONE.RHUGNOR.getFluidStack(288))
+ .fluidOutputs(ELEMENT.STANDALONE.HYPOGEN.getFluidStack(36))
+ .duration(6 * MINUTES + 49 * SECONDS + 12 * TICKS).eut(TierEU.RECIPE_UHV)
+ .metadata(FUSION_THRESHOLD, 1_200_000_000).addTo(sFusionRecipes);
// Rhugnor
- GT_Values.RA.addFusionReactorRecipe(
- MaterialUtils.getMaterial("Infinity", "Neutronium").getMolten(144),
- ALLOY.QUANTUM.getFluidStack(288),
- ELEMENT.STANDALONE.RHUGNOR.getFluidStack(144),
- 512,
- MaterialUtils.getVoltageForTier(8),
- 2000000000);
+ GT_Values.RA.stdBuilder().noItemInputs().noItemOutputs()
+ .fluidInputs(
+ MaterialUtils.getMaterial("Infinity", "Neutronium").getMolten(144),
+ ALLOY.QUANTUM.getFluidStack(288))
+ .fluidOutputs(ELEMENT.STANDALONE.RHUGNOR.getFluidStack(144)).duration(25 * SECONDS + 12 * TICKS)
+ .eut(TierEU.RECIPE_UV).metadata(FUSION_THRESHOLD, 2_000_000_000).addTo(sFusionRecipes);
}
private static void assemblyLineRecipes() {
- ItemStack[] aCoilWire = new ItemStack[] { ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 0, 64),
- ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 1, 64),
- ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 2, 64),
- ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 3, 64), };
-
// Containment Casings
- CORE.RA.addAssemblylineRecipe(
- ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_1_CONTAINMENT, 1),
- 20 * 60 * 30,
- new Object[] { ItemList.Field_Generator_IV.get(32), ItemList.Electric_Motor_EV.get(64),
- ItemList.Energy_LapotronicOrb.get(32), CI.getTieredComponent(OrePrefixes.cableGt12, 7, 32),
+ GT_Values.RA.stdBuilder()
+ .metadata(
+ RESEARCH_ITEM,
+ ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_1_CONTAINMENT, 1))
+ .metadata(RESEARCH_TIME, 30 * MINUTES)
+ .itemInputs(
+ ItemList.Field_Generator_IV.get(32),
+ ItemList.Electric_Motor_EV.get(64),
+ ItemList.Energy_LapotronicOrb.get(32),
+ CI.getTieredComponent(OrePrefixes.cableGt12, 7, 32),
CI.getTieredComponent(OrePrefixes.wireGt16, 6, 64),
- ItemUtils.getOrePrefixStack(OrePrefixes.plate, Materials.Naquadria, 64),
- ELEMENT.getInstance().GADOLINIUM.getDust(32), ELEMENT.getInstance().SAMARIUM.getDust(16),
- ALLOY.ARCANITE.getGear(8), new Object[] { CI.getTieredCircuitOreDictName(5), 64 },
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Naquadria, 64L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gadolinium, 32L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Samarium, 16L),
+ ALLOY.ARCANITE.getGear(8),
+ new Object[] { CI.getTieredCircuitOreDictName(5), 64 },
new Object[] { CI.getTieredCircuitOreDictName(6), 32 },
new Object[] { CI.getTieredCircuitOreDictName(7), 16 },
- GregtechItemList.Laser_Lens_Special.get(1), aCoilWire[3] },
- new FluidStack[] { ALLOY.NITINOL_60.getFluidStack(144 * 9 * 4),
- ALLOY.ENERGYCRYSTAL.getFluidStack(144 * 9 * 8), ALLOY.TUMBAGA.getFluidStack(144 * 9 * 32),
- ALLOY.NICHROME.getFluidStack(144 * 1 * 16), },
- ItemUtils.getSimpleStack(ModBlocks.blockCasings3Misc, 15, 32),
- 20 * 60 * 10 * 2,
- (int) MaterialUtils.getVoltageForTier(6));
+ GregtechItemList.Laser_Lens_Special.get(1),
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 3, 64))
+ .fluidInputs(
+ ALLOY.NITINOL_60.getFluidStack(144 * 9 * 4),
+ ALLOY.ENERGYCRYSTAL.getFluidStack(144 * 9 * 8),
+ ALLOY.TUMBAGA.getFluidStack(144 * 9 * 32),
+ Materials.Nichrome.getMolten(16 * INGOTS))
+ .noFluidOutputs().itemOutputs(ItemUtils.getSimpleStack(ModBlocks.blockCasings3Misc, 15, 32))
+ .eut(TierEU.RECIPE_LuV).duration(20 * MINUTES).addTo(AssemblyLine);
// Turbine Automation Port
- CORE.RA.addAssemblylineRecipe(
- ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_8_TURBINE_AUTOMATION, 1),
- 20 * 60 * 60 * 24,
- new Object[] { CI.getTieredMachineHull(8, 4), CI.getConveyor(8, 24), CI.getElectricMotor(7, 32),
- CI.getElectricPiston(7, 16), CI.getEnergyCore(6, 8), CI.getPlate(8, 24),
- CI.getTieredComponent(OrePrefixes.screw, 8, 48), CI.getTieredComponent(OrePrefixes.bolt, 7, 32),
+ GT_Values.RA.stdBuilder()
+ .metadata(
+ RESEARCH_ITEM,
+ ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_8_TURBINE_AUTOMATION, 1))
+ .metadata(RESEARCH_TIME, 24 * HOURS)
+ .itemInputs(
+ CI.getTieredMachineHull(8, 4),
+ CI.getConveyor(8, 24),
+ CI.getElectricMotor(7, 32),
+ CI.getElectricPiston(7, 16),
+ CI.getEnergyCore(6, 8),
+ CI.getPlate(8, 24),
+ CI.getTieredComponent(OrePrefixes.screw, 8, 48),
+ CI.getTieredComponent(OrePrefixes.bolt, 7, 32),
CI.getTieredComponent(OrePrefixes.rod, 6, 12),
new Object[] { CI.getTieredCircuitOreDictName(7), 20 },
- CI.getTieredComponent(OrePrefixes.rotor, 6, 16), },
- new FluidStack[] { CI.getTieredFluid(8, 144 * 32), CI.getAlternativeTieredFluid(7, 144 * 16),
- CI.getTertiaryTieredFluid(7, 144 * 16), ALLOY.BABBIT_ALLOY.getFluidStack(128 * 144) },
- GregtechItemList.Hatch_Input_TurbineHousing.get(4),
- 20 * 60 * 60 * 2,
- (int) MaterialUtils.getVoltageForTier(8));
+ CI.getTieredComponent(OrePrefixes.rotor, 6, 16))
+ .fluidInputs(
+ CI.getTieredFluid(8, 144 * 32),
+ CI.getAlternativeTieredFluid(7, 144 * 16),
+ CI.getTertiaryTieredFluid(7, 144 * 16),
+ ALLOY.BABBIT_ALLOY.getFluidStack(128 * 144))
+ .noFluidOutputs().itemOutputs(GregtechItemList.Hatch_Input_TurbineHousing.get(4)).eut(TierEU.RECIPE_UV)
+ .duration(2 * HOURS).addTo(AssemblyLine);
/*
- * Contianment casings
+ * Containment casings
*/
-
+ ItemStack[] aCoilWire = new ItemStack[] { ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 0, 64),
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 1, 64),
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 2, 64),
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 3, 64), };
ItemStack[] aGemCasings = new ItemStack[] { GregtechItemList.Battery_Casing_Gem_1.get(1),
GregtechItemList.Battery_Casing_Gem_2.get(1), GregtechItemList.Battery_Casing_Gem_3.get(1),
GregtechItemList.Battery_Casing_Gem_4.get(1), };
@@ -360,17 +381,18 @@ public class RECIPES_GREGTECH {
int aCasingSlot = 0;
for (int j = 6; j < 10; j++) {
- CORE.RA.addAssemblylineRecipe(
- aResearch[aCasingSlot],
- 20 * 60 * 60,
- new ItemStack[] { CI.getTieredComponent(OrePrefixes.plate, j - 1, 16),
+ GT_Values.RA.stdBuilder().metadata(RESEARCH_ITEM, aResearch[aCasingSlot]).metadata(RESEARCH_TIME, 1 * HOURS)
+ .itemInputs(
+ CI.getTieredComponent(OrePrefixes.plate, j - 1, 16),
CI.getTieredComponent(OrePrefixes.cableGt08, j + 1, 32),
- CI.getTieredComponent(OrePrefixes.gearGt, j - 1, 4), aCoilWire[aCasingSlot] },
- new FluidStack[] { CI.getTieredFluid(j, 144 * 8), CI.getTertiaryTieredFluid(j - 2, 144 * 16),
- CI.getAlternativeTieredFluid(j, 144 * 16), },
- aGemCasings[aCasingSlot++],
- 20 * 60 * 1 * 2,
- (int) MaterialUtils.getVoltageForTier(j));
+ CI.getTieredComponent(OrePrefixes.gearGt, j - 1, 4),
+ aCoilWire[aCasingSlot])
+ .fluidInputs(
+ CI.getTieredFluid(j, 144 * 8),
+ CI.getTertiaryTieredFluid(j - 2, 144 * 16),
+ CI.getAlternativeTieredFluid(j, 144 * 16))
+ .noFluidOutputs().itemOutputs(aGemCasings[aCasingSlot++]).eut(GT_Values.V[j]).duration(2 * MINUTES)
+ .addTo(AssemblyLine);
}
/*
@@ -386,42 +408,46 @@ public class RECIPES_GREGTECH {
Particle.getBaseParticle(Particle.GRAVITON) };
aCasingSlot = 0;
for (int j = 6; j < 10; j++) {
- CORE.RA.addAssemblylineRecipe(
- aExoticInputs[aCasingSlot],
- 20 * 60 * 60 * 5,
- new Object[] { aGemCasings[aCasingSlot], ItemUtils.getSimpleStack(aExoticInputs[aCasingSlot], 16),
+ GT_Values.RA.stdBuilder().metadata(RESEARCH_ITEM, aExoticInputs[aCasingSlot])
+ .metadata(RESEARCH_TIME, 5 * HOURS)
+ .itemInputs(
+ aGemCasings[aCasingSlot],
+ ItemUtils.getSimpleStack(aExoticInputs[aCasingSlot], 16),
CI.getTieredComponent(OrePrefixes.plate, j, 16),
new Object[] { CI.getTieredCircuitOreDictName(j), 8 },
CI.getTieredComponent(OrePrefixes.wireGt16, j + 1, 32),
CI.getTieredComponent(OrePrefixes.bolt, j, 8),
- CI.getTieredComponent(OrePrefixes.screw, j - 1, 8), },
- new FluidStack[] { CI.getTieredFluid(j, 144 * 1 * 16),
- CI.getTertiaryTieredFluid(j - 2, 144 * 2 * 16), CI.getAlternativeTieredFluid(j, 144 * 16),
- CI.getTertiaryTieredFluid(j - 1, 144 * 16), },
- aGemBatteries[aCasingSlot++],
- 20 * 60 * 1 * 2,
- (int) MaterialUtils.getVoltageForTier(j));
+ CI.getTieredComponent(OrePrefixes.screw, j - 1, 8))
+ .fluidInputs(
+ CI.getTieredFluid(j, 144 * 1 * 16),
+ CI.getTertiaryTieredFluid(j - 2, 144 * 2 * 16),
+ CI.getAlternativeTieredFluid(j, 144 * 16),
+ CI.getTertiaryTieredFluid(j - 1, 144 * 16))
+ .noFluidOutputs().itemOutputs(aGemBatteries[aCasingSlot++]).eut(GT_Values.V[j])
+ .duration(2 * MINUTES).addTo(AssemblyLine);
}
if (Baubles.isModLoaded()) {
// Nano Healer
- CORE.RA.addAssemblylineRecipe(
- ItemUtils.simpleMetaStack(Items.golden_apple, 1, 1),
- 20 * 60 * 10,
- new Object[] { ItemUtils.getSimpleStack(aGemCasings[2], 4),
+ GT_Values.RA.stdBuilder().metadata(RESEARCH_ITEM, ItemUtils.simpleMetaStack(Items.golden_apple, 1, 1))
+ .metadata(RESEARCH_TIME, 10 * MINUTES)
+ .itemInputs(
+ ItemUtils.getSimpleStack(aGemCasings[2], 4),
CI.getTieredComponent(OrePrefixes.plate, 8, 32),
new Object[] { CI.getTieredCircuitOreDictName(7), 16 },
CI.getTieredComponent(OrePrefixes.cableGt02, 7, 16),
CI.getTieredComponent(OrePrefixes.gearGt, 6, 6),
CI.getTieredComponent(OrePrefixes.screw, 7, 16),
CI.getTieredComponent(OrePrefixes.bolt, 5, 24),
- CI.getTieredComponent(OrePrefixes.frameGt, 4, 12), aCoilWire[3] },
- new FluidStack[] { CI.getTieredFluid(7, 144 * 18 * 16), CI.getTertiaryTieredFluid(7, 144 * 18 * 16),
+ CI.getTieredComponent(OrePrefixes.frameGt, 4, 12),
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 3, 64))
+ .fluidInputs(
+ CI.getTieredFluid(7, 144 * 18 * 16),
+ CI.getTertiaryTieredFluid(7, 144 * 18 * 16),
CI.getAlternativeTieredFluid(6, 144 * 18 * 16),
- CI.getAlternativeTieredFluid(7, 144 * 18 * 16), },
- ItemUtils.getItemStackFromFQRN("miscutils:personalHealingDevice", 1),
- 20 * 60 * 30 * 2,
- (int) MaterialUtils.getVoltageForTier(7));
+ CI.getAlternativeTieredFluid(7, 144 * 18 * 16))
+ .noFluidOutputs().itemOutputs(ItemUtils.getItemStackFromFQRN("miscutils:personalHealingDevice", 1))
+ .eut(TierEU.RECIPE_ZPM).duration(1 * HOURS).addTo(AssemblyLine);
// Charge Pack LuV-UV
@@ -438,49 +464,58 @@ public class RECIPES_GREGTECH {
int aCurrSlot = 0;
for (int h = 6; h < 10; h++) {
- CORE.RA.addAssemblylineRecipe(
- aChargeResearch[aCurrSlot],
- 20 * 60 * 10 * (aCurrSlot + 1),
- new Object[] { ItemUtils.getSimpleStack(aGemBatteries[aCurrSlot], 2), aCoilWire[aCurrSlot],
+ GT_Values.RA.stdBuilder().metadata(RESEARCH_ITEM, aChargeResearch[aCurrSlot])
+ .metadata(RESEARCH_TIME, 10 * (aCurrSlot + 1) * MINUTES)
+ .itemInputs(
+ ItemUtils.getSimpleStack(aGemBatteries[aCurrSlot], 2),
+ aCoilWire[aCurrSlot],
CI.getTieredComponent(OrePrefixes.plate, h, 8),
new Object[] { CI.getTieredCircuitOreDictName(h), 4 },
new Object[] { CI.getTieredCircuitOreDictName(h - 1), 8 },
CI.getTieredComponent(OrePrefixes.cableGt12, h - 1, 16),
CI.getTieredComponent(OrePrefixes.screw, h, 16),
- CI.getTieredComponent(OrePrefixes.bolt, h - 2, 32), CI.getFieldGenerator(h, 1), },
- new FluidStack[] { CI.getTieredFluid(h, 144 * 4 * 8),
+ CI.getTieredComponent(OrePrefixes.bolt, h - 2, 32),
+ CI.getFieldGenerator(h, 1))
+ .fluidInputs(
+ CI.getTieredFluid(h, 144 * 4 * 8),
CI.getTertiaryTieredFluid(h - 1, 144 * 4 * 8),
CI.getAlternativeTieredFluid(h - 1, 144 * 4 * 8),
- CI.getAlternativeTieredFluid(h - 2, 144 * 4 * 8), },
- aChargeOutputs[aCurrSlot],
- 20 * 60 * 30 * 2 * (aCurrSlot + 1),
- (int) MaterialUtils.getVoltageForTier(h));
+ CI.getAlternativeTieredFluid(h - 2, 144 * 4 * 8))
+ .noFluidOutputs().itemOutputs(aChargeOutputs[aCurrSlot]).eut(GT_Values.V[h])
+ .duration((aCurrSlot + 1) * HOURS).addTo(AssemblyLine);
aCurrSlot++;
}
// Cloaking device
- CORE.RA.addAssemblylineRecipe(
- ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_9_CLOAKING, 1),
- 20 * 60 * 10,
- new Object[] { ItemUtils.getSimpleStack(aGemCasings[3], 4),
+ GT_Values.RA.stdBuilder()
+ .metadata(
+ RESEARCH_ITEM,
+ ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_9_CLOAKING, 1))
+ .metadata(RESEARCH_TIME, 10 * MINUTES)
+ .itemInputs(
+ ItemUtils.getSimpleStack(aGemCasings[3], 4),
CI.getTieredComponent(OrePrefixes.plate, 8, 32),
new Object[] { CI.getTieredCircuitOreDictName(7), 16 },
CI.getTieredComponent(OrePrefixes.cableGt04, 8, 16),
CI.getTieredComponent(OrePrefixes.gearGt, 7, 6),
CI.getTieredComponent(OrePrefixes.screw, 8, 16),
CI.getTieredComponent(OrePrefixes.bolt, 7, 24),
- CI.getTieredComponent(OrePrefixes.frameGt, 5, 12), aCoilWire[3] },
- new FluidStack[] { CI.getTieredFluid(8, 144 * 18 * 16), CI.getTertiaryTieredFluid(8, 144 * 18 * 16),
+ CI.getTieredComponent(OrePrefixes.frameGt, 5, 12),
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 3, 64))
+ .fluidInputs(
+ CI.getTieredFluid(8, 144 * 18 * 16),
+ CI.getTertiaryTieredFluid(8, 144 * 18 * 16),
CI.getAlternativeTieredFluid(7, 144 * 18 * 16),
- CI.getAlternativeTieredFluid(8, 144 * 18 * 16), },
- ItemUtils.getItemStackFromFQRN("miscutils:personalCloakingDevice", 1),
- 20 * 60 * 30 * 2,
- (int) MaterialUtils.getVoltageForTier(8));
+ CI.getAlternativeTieredFluid(8, 144 * 18 * 16))
+ .noFluidOutputs().itemOutputs(ItemUtils.getItemStackFromFQRN("miscutils:personalCloakingDevice", 1))
+ .eut(TierEU.RECIPE_UV).duration(1 * HOURS).addTo(AssemblyLine);
}
- GT_Values.RA.addAssemblylineRecipe(
- GregtechItemList.Industrial_AlloyBlastSmelter.get(1, new Object() {}),
- 20 * 60 * 30,
- new Object[] { GregtechItemList.Industrial_AlloyBlastSmelter.get(64L, new Object() {}),
+
+ GT_Values.RA.stdBuilder()
+ .metadata(RESEARCH_ITEM, GregtechItemList.Industrial_AlloyBlastSmelter.get(1, new Object() {}))
+ .metadata(RESEARCH_TIME, 30 * MINUTES)
+ .itemInputs(
+ GregtechItemList.Industrial_AlloyBlastSmelter.get(64L, new Object() {}),
GregtechItemList.Industrial_AlloyBlastSmelter.get(64L, new Object() {}),
GregtechItemList.Industrial_AlloyBlastSmelter.get(64L, new Object() {}),
GregtechItemList.Industrial_AlloyBlastSmelter.get(64L, new Object() {}),
@@ -488,13 +523,15 @@ public class RECIPES_GREGTECH {
ItemList.Conveyor_Module_UV.get(4L, new Object() {}),
new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 8 },
new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 16 },
- ItemList.Circuit_Chip_PPIC.get(16, new Object() {}), ALLOY.PIKYONIUM.getPlate(16),
- ALLOY.CINOBITE.getScrew(32) },
- new FluidStack[] { ALLOY.PIKYONIUM.getFluidStack(144 * 8), ALLOY.INDALLOY_140.getFluidStack(144 * 9),
- Materials.SolderingAlloy.getMolten(144 * 10) },
- GregtechItemList.Mega_AlloyBlastSmelter.get(1L),
- 60 * 20,
- 1000000);
+ ItemList.Circuit_Chip_PPIC.get(16, new Object() {}),
+ ALLOY.PIKYONIUM.getPlate(16),
+ ALLOY.CINOBITE.getScrew(32))
+ .fluidInputs(
+ ALLOY.PIKYONIUM.getFluidStack(144 * 8),
+ ALLOY.INDALLOY_140.getFluidStack(144 * 9),
+ Materials.SolderingAlloy.getMolten(144 * 10))
+ .noFluidOutputs().itemOutputs(GregtechItemList.Mega_AlloyBlastSmelter.get(1L))
+ .eut(TierEU.RECIPE_UHV / 2).duration(1 * MINUTES).addTo(AssemblyLine);
}
private static void laserEngraverRecipes() {
@@ -507,142 +544,92 @@ public class RECIPES_GREGTECH {
GregtechItemList.TransmissionComponent_ZPM, GregtechItemList.TransmissionComponent_UV,
GregtechItemList.TransmissionComponent_MAX, };
for (int i = 0; i < 10; i++) {
- GT_Values.RA.addLaserEngraverRecipe(
- CI.getEmitter(i, 2),
- CI.getSensor(i, 2),
- aTransParts[i].get(1),
- 20 * 5,
- MaterialUtils.getVoltageForTier(i));
+ GT_Values.RA.stdBuilder().itemInputs(CI.getEmitter(i, 2), CI.getSensor(i, 2))
+ .itemOutputs(aTransParts[i].get(1)).noFluidInputs().noFluidOutputs().duration(5 * SECONDS)
+ .eut(GT_Values.VP[i]).addTo(sLaserEngraverRecipes);
}
- GT_Values.RA.addLaserEngraverRecipe(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungsten, 6L),
- GregtechItemList.Laser_Lens_Special.get(0),
- ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.getDust(1),
- 20 * 60 * 3,
- MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.vTier));
-
- GT_Values.RA.addLaserEngraverRecipe(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 8L),
- GregtechItemList.Laser_Lens_Special.get(0),
- ELEMENT.STANDALONE.ASTRAL_TITANIUM.getDust(1),
- 20 * 60 * 2,
- MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.ASTRAL_TITANIUM.vTier));
-
- GT_Values.RA.addLaserEngraverRecipe(
- ALLOY.NITINOL_60.getBlock(2),
- GregtechItemList.Laser_Lens_Special.get(0),
- ELEMENT.STANDALONE.ADVANCED_NITINOL.getBlock(1),
- 20 * 60 * 1,
- MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.ADVANCED_NITINOL.vTier));
-
- GT_Values.RA.addLaserEngraverRecipe(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 64L),
- GregtechItemList.Laser_Lens_Special.get(0),
- ELEMENT.STANDALONE.CHRONOMATIC_GLASS.getDust(1),
- 20 * 60 * 5,
- MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.CHRONOMATIC_GLASS.vTier));
-
- GT_Values.RA.addLaserEngraverRecipe(
- CI.getFieldGenerator(6, 1),
- CI.getEmitter(7, 2),
- ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_1_CONTAINMENT, 1),
- 20 * 60 * 5,
- MaterialUtils.getVoltageForTier(5));
+ GT_Values.RA.stdBuilder()
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungsten, 6L),
+ GregtechItemList.Laser_Lens_Special.get(0))
+ .itemOutputs(ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.getDust(1)).noFluidInputs().noFluidOutputs()
+ .duration(3 * MINUTES).eut(MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.vTier))
+ .addTo(sLaserEngraverRecipes);
+
+ GT_Values.RA.stdBuilder()
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 8L),
+ GregtechItemList.Laser_Lens_Special.get(0))
+ .itemOutputs(ELEMENT.STANDALONE.ASTRAL_TITANIUM.getDust(1)).noFluidInputs().noFluidOutputs()
+ .duration(2 * MINUTES).eut(MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.ASTRAL_TITANIUM.vTier))
+ .addTo(sLaserEngraverRecipes);
+
+ GT_Values.RA.stdBuilder().itemInputs(ALLOY.NITINOL_60.getBlock(2), GregtechItemList.Laser_Lens_Special.get(0))
+ .itemOutputs(ELEMENT.STANDALONE.ADVANCED_NITINOL.getBlock(1)).noFluidInputs().noFluidOutputs()
+ .duration(1 * MINUTES).eut(MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.ADVANCED_NITINOL.vTier))
+ .addTo(sLaserEngraverRecipes);
+
+ GT_Values.RA.stdBuilder()
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 64L),
+ GregtechItemList.Laser_Lens_Special.get(0))
+ .itemOutputs(ELEMENT.STANDALONE.CHRONOMATIC_GLASS.getDust(1)).noFluidInputs().noFluidOutputs()
+ .duration(5 * MINUTES).eut(MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.CHRONOMATIC_GLASS.vTier))
+ .addTo(sLaserEngraverRecipes);
+
+ GT_Values.RA.stdBuilder().itemInputs(CI.getFieldGenerator(6, 1), CI.getEmitter(7, 2))
+ .itemOutputs(ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_1_CONTAINMENT, 1))
+ .noFluidInputs().noFluidOutputs().duration(5 * MINUTES).eut(TierEU.RECIPE_IV)
+ .addTo(sLaserEngraverRecipes);
// Distillus Upgrade Chip
- GT_Values.RA.addLaserEngraverRecipe(
- GregtechItemList.Laser_Lens_WoodsGlass.get(0),
- ItemUtils.simpleMetaStack(AgriculturalChem.mBioCircuit, 20, 1),
- GregtechItemList.Distillus_Upgrade_Chip.get(1),
- 20 * 60 * 5,
- MaterialUtils.getVoltageForTier(5));
-
- // GT_Values.RA.addLaserEngraverRecipe(
- // GregtechItemList.Laser_Lens_WoodsGlass.get(0),
- // ItemUtils.simpleMetaStack(ModBlocks.blockCompressedObsidian, 8, 1),
- // ItemUtils.getSimpleStack(ModItems.itemSunnariumBit, 3),
- // 20 * 60 * 5,
- // MaterialUtils.getVoltageForTier(3));
-
+ GT_Values.RA.stdBuilder()
+ .itemInputs(
+ GregtechItemList.Laser_Lens_WoodsGlass.get(0),
+ ItemUtils.simpleMetaStack(AgriculturalChem.mBioCircuit, 20, 1))
+ .itemOutputs(GregtechItemList.Distillus_Upgrade_Chip.get(1)).noFluidInputs().noFluidOutputs()
+ .duration(5 * MINUTES).eut(TierEU.RECIPE_IV).addTo(sLaserEngraverRecipes);
}
private static void breweryRecipes() {
- CORE.RA.addBrewingRecipe(
- 14,
- EnchantingUtils.getMobEssence(100),
- EnchantingUtils.getLiquidXP(1332),
- 100,
- 120,
- false);
- CORE.RA.addBrewingRecipe(
- 14,
- EnchantingUtils.getLiquidXP(1332),
- EnchantingUtils.getMobEssence(100),
- 100,
- 120,
- false);
- CORE.RA.addBrewingRecipe(
- ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest),
- FluidUtils.getFluidStack("water", 100),
- FluidUtils.getFluidStack("biomass", 100),
- 1200,
- 3,
- false);
- CORE.RA.addBrewingRecipe(
- ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest),
- FluidUtils.getFluidStack("honey", 100),
- FluidUtils.getFluidStack("biomass", 150),
- 1200,
- 3,
- false);
- CORE.RA.addBrewingRecipe(
- ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest),
- FluidUtils.getFluidStack("juice", 100),
- FluidUtils.getFluidStack("biomass", 150),
- 1200,
- 3,
- false);
+ GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(14)).noItemOutputs()
+ .fluidInputs(EnchantingUtils.getMobEssence(100)).fluidOutputs(EnchantingUtils.getLiquidXP(1332))
+ .duration(5 * SECONDS).eut(TierEU.RECIPE_MV).addTo(sBrewingRecipes);
+ GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(14)).noItemOutputs()
+ .fluidInputs(EnchantingUtils.getLiquidXP(1332)).fluidOutputs(EnchantingUtils.getMobEssence(100))
+ .duration(5 * SECONDS).eut(TierEU.RECIPE_MV).addTo(sBrewingRecipes);
+ GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest))
+ .noItemOutputs().fluidInputs(Materials.Water.getFluid(100L))
+ .fluidOutputs(Materials.Biomass.getFluid(100L)).duration(1 * MINUTES).eut(3).addTo(sBrewingRecipes);
+ GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest))
+ .noItemOutputs().fluidInputs(Materials.Honey.getFluid(100L))
+ .fluidOutputs(Materials.Biomass.getFluid(100L)).duration(1 * MINUTES).eut(3).addTo(sBrewingRecipes);
+ GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest))
+ .noItemOutputs().fluidInputs(FluidUtils.