diff --git a/src/test/java/gregtech/api/capability/impl/AbstractRecipeLogicTest.java b/src/test/java/gregtech/api/capability/impl/AbstractRecipeLogicTest.java index 5949918f337..182870e78f2 100644 --- a/src/test/java/gregtech/api/capability/impl/AbstractRecipeLogicTest.java +++ b/src/test/java/gregtech/api/capability/impl/AbstractRecipeLogicTest.java @@ -6,6 +6,7 @@ import gregtech.api.metatileentity.SimpleMachineMetaTileEntity; import gregtech.api.recipes.Recipe; import gregtech.api.recipes.RecipeMap; +import gregtech.api.recipes.RecipeMapBuilder; import gregtech.api.recipes.builders.SimpleRecipeBuilder; import gregtech.api.util.GTUtility; import gregtech.api.util.world.DummyWorld; @@ -116,13 +117,13 @@ private static AbstractRecipeLogic createTestLogic(int testRecipeEUt, int testRe World world = DummyWorld.INSTANCE; // Create an empty recipe map to work with - RecipeMap map = new RecipeMap<>("test_reactor_" + TEST_ID, - 2, - 2, - 3, - 2, - new SimpleRecipeBuilder().EUt(30), - false); + RecipeMap map = new RecipeMapBuilder<>("test_reactor_" + TEST_ID, + new SimpleRecipeBuilder().EUt(30)) + .itemInputs(2) + .itemOutputs(2) + .fluidInputs(3) + .fluidOutputs(2) + .build(); MetaTileEntity at = MetaTileEntities.registerMetaTileEntity(TEST_ID, new SimpleMachineMetaTileEntity( diff --git a/src/test/java/gregtech/api/capability/impl/MultiblockRecipeLogicTest.java b/src/test/java/gregtech/api/capability/impl/MultiblockRecipeLogicTest.java index 47c4287aef1..bfda73b5311 100644 --- a/src/test/java/gregtech/api/capability/impl/MultiblockRecipeLogicTest.java +++ b/src/test/java/gregtech/api/capability/impl/MultiblockRecipeLogicTest.java @@ -8,9 +8,7 @@ import gregtech.api.metatileentity.multiblock.MultiblockControllerBase; import gregtech.api.metatileentity.multiblock.RecipeMapMultiblockController; import gregtech.api.recipes.Recipe; -import gregtech.api.recipes.RecipeMap; import gregtech.api.recipes.RecipeMaps; -import gregtech.api.recipes.builders.BlastRecipeBuilder; import gregtech.api.util.world.DummyWorld; import gregtech.common.metatileentities.MetaTileEntities; import gregtech.common.metatileentities.multi.electric.MetaTileEntityElectricBlastFurnace; @@ -50,15 +48,6 @@ public static void bootstrap() { public void trySearchNewRecipe() { World world = DummyWorld.INSTANCE; - // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("test_recipemap", - 3, - 3, - 1, - 1, - new BlastRecipeBuilder().EUt(32), - false); - RecipeMaps.BLAST_RECIPES.recipeBuilder() .inputs(new ItemStack(Blocks.COBBLESTONE)) .outputs(new ItemStack(Blocks.STONE)) @@ -285,15 +274,6 @@ protected IMultipleTankHandler getOutputTank() { public void trySearchNewRecipeDistinct() { World world = DummyWorld.INSTANCE; - // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("test_recipemap_2", - 3, - 3, - 1, - 1, - new BlastRecipeBuilder().EUt(32), - false); - RecipeMaps.BLAST_RECIPES.recipeBuilder() .inputs(new ItemStack(Blocks.COBBLESTONE)) .outputs(new ItemStack(Blocks.STONE)) diff --git a/src/test/java/gregtech/api/recipes/RecipeMapTest.java b/src/test/java/gregtech/api/recipes/RecipeMapTest.java index 4c158bee333..3330c1fd57d 100644 --- a/src/test/java/gregtech/api/recipes/RecipeMapTest.java +++ b/src/test/java/gregtech/api/recipes/RecipeMapTest.java @@ -40,13 +40,12 @@ public static void bootstrap() { @BeforeEach public void setupRecipes() { - map = new RecipeMap<>("test_reactor_" + mapId++, - 2, - 2, - 3, - 2, - new SimpleRecipeBuilder().EUt(30), - false); + map = new RecipeMapBuilder<>("test_reactor_" + mapId++, new SimpleRecipeBuilder().EUt(30)) + .itemInputs(2) + .itemOutputs(2) + .fluidInputs(3) + .fluidOutputs(2) + .build(); map.recipeBuilder() .notConsumable(new ItemStack(Blocks.COBBLESTONE)) @@ -257,7 +256,10 @@ public void MapHashCollision() { @Test public void wildcardInput() { // test that all variants of a wildcard input can be used to find a recipe - RecipeMap recipeMap = new RecipeMap<>("test", 1, 4, 0, 0, new SimpleRecipeBuilder(), false); + RecipeMap recipeMap = new RecipeMapBuilder<>("test", new SimpleRecipeBuilder()) + .itemInputs(1) + .itemOutputs(4) + .build(); recipeMap.recipeBuilder() .inputs(new ItemStack(Blocks.STAINED_HARDENED_CLAY, 1, GTValues.W)) .outputs(new ItemStack(Blocks.COBBLESTONE, 1)) diff --git a/src/test/java/gregtech/api/recipes/logic/IParallelableRecipeLogicTest.java b/src/test/java/gregtech/api/recipes/logic/IParallelableRecipeLogicTest.java index 882d9287e6a..6354772d0bd 100644 --- a/src/test/java/gregtech/api/recipes/logic/IParallelableRecipeLogicTest.java +++ b/src/test/java/gregtech/api/recipes/logic/IParallelableRecipeLogicTest.java @@ -208,13 +208,12 @@ public void findMultipliedRecipe_AtMaxParallelsTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -261,13 +260,12 @@ public void findMultipliedRecipe_LessThanMaxParallelsTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -313,13 +311,12 @@ public void findMultipliedRecipe_FluidOnlyMaxParallelTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -366,13 +363,12 @@ public void findMultipliedRecipe_FluidOnlyLessThanMaxParallelTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 2, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -419,13 +415,12 @@ public void findAppendedParallelItemRecipe_AtMaxParallelsTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("test_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("test_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing map.recipeBuilder() @@ -466,13 +461,12 @@ public void findAppendedParallelItemRecipe_LessThanMaxParallelsTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("test_blast_furnace_2", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("test_blast_furnace_2", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing map.recipeBuilder() @@ -543,13 +537,12 @@ public MetaTileEntity getMetaTileEntity() { }; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -618,13 +611,12 @@ public MetaTileEntity getMetaTileEntity() { }; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -683,13 +675,12 @@ public MetaTileEntity getMetaTileEntity() { }; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -788,13 +779,12 @@ public MetaTileEntity getMetaTileEntity() { }; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() diff --git a/src/test/java/gregtech/api/recipes/logic/ParallelLogicTest.java b/src/test/java/gregtech/api/recipes/logic/ParallelLogicTest.java index 0b1de7c397a..d8c75056966 100644 --- a/src/test/java/gregtech/api/recipes/logic/ParallelLogicTest.java +++ b/src/test/java/gregtech/api/recipes/logic/ParallelLogicTest.java @@ -7,6 +7,7 @@ import gregtech.api.recipes.Recipe; import gregtech.api.recipes.RecipeBuilder; import gregtech.api.recipes.RecipeMap; +import gregtech.api.recipes.RecipeMapBuilder; import gregtech.api.recipes.RecipeMaps; import gregtech.api.recipes.builders.BlastRecipeBuilder; import gregtech.api.unification.material.Materials; @@ -52,13 +53,12 @@ public void getMaxRecipeMultiplier_ItemLimitTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -83,13 +83,12 @@ public void getMaxRecipeMultiplier_FluidLimitTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -114,13 +113,12 @@ public void getMaxRecipeMultiplier_LimitFailureTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -145,13 +143,12 @@ public void getMaxRecipeMultiplier_ItemFailureTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -176,13 +173,12 @@ public void getMaxRecipeMultiplier_FluidFailureTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -207,13 +203,12 @@ public void limitParallelByItems_MaxParallelTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -238,13 +233,12 @@ public void limitParallelByItems_LessThanMaxParallelsTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -273,13 +267,12 @@ public void limitParallelByItems_SplitAcrossStacksTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -308,13 +301,12 @@ public void limitParallelByItems_ItemOutputFullTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -345,13 +337,12 @@ public void limitParallelByFluids_MaxParallelTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() .inputs(new ItemStack(Blocks.COBBLESTONE)) @@ -374,13 +365,12 @@ public void limitParallelByFluids_PartialParallelsTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -405,13 +395,12 @@ public void limitParallelByFluids_FluidOutputFullTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -436,13 +425,12 @@ public void getMaxRatioItem_SameNonConsumedTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -483,13 +471,12 @@ public void getMaxRatioItem_DifferentNonConsumedTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -514,13 +501,12 @@ public void getMaxRatioItem_OnlyNonConsumedTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -543,13 +529,12 @@ public void getMaxRatioItem_OnlyNonConsumedWithStacksizeTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -590,13 +575,12 @@ public void getMaxRatioFluid_RegularFluidInputsTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -638,13 +622,12 @@ public void getMaxRatioFluid_SameNonConsumedTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 1, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -696,13 +679,12 @@ public void getMaxRatioFluid_DifferentNonConsumedTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 2, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -756,13 +738,12 @@ public void getMaxRatioFluid_OnlyNonConsumedTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 2, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder() @@ -805,13 +786,12 @@ public void getMaxRatioFluid_OnlyNonConsumedWithStacksizeTest() { int parallelLimit = 4; // Create a recipe Map to be used for testing - RecipeMap map = new RecipeMap<>("electric_blast_furnace", - 3, - 2, - 2, - 1, - new BlastRecipeBuilder(), - false); + RecipeMap map = new RecipeMapBuilder<>("electric_blast_furnace", new BlastRecipeBuilder()) + .itemInputs(3) + .itemOutputs(2) + .fluidInputs(1) + .fluidOutputs(1) + .build(); // Create a simple recipe to be used for testing Recipe recipe = map.recipeBuilder()