1111import com .gregtechceu .gtceu .api .machine .multiblock .WorkableMultiblockMachine ;
1212import com .gregtechceu .gtceu .api .machine .trait .NotifiableItemStackHandler ;
1313import com .gregtechceu .gtceu .api .recipe .GTRecipeType ;
14+ import com .gregtechceu .gtceu .common .data .GTRecipeTypes ;
1415import com .gregtechceu .gtceu .common .machine .multiblock .part .FluidHatchPartMachine ;
1516import com .gregtechceu .gtceu .common .machine .multiblock .part .ItemBusPartMachine ;
1617import com .gregtechceu .gtceu .common .machine .multiblock .part .ParallelHatchPartMachine ;
@@ -66,11 +67,20 @@ public class IntProviderIngredientTest {
6667
6768 @ BeforeBatch (batch = "RangedIngredients" )
6869 public static void prepare (ServerLevel level ) {
69- CR_RECIPE_TYPE = TestUtils .createRecipeType ("ranged_ingredient_cr_tests" , 2 , 2 , 3 , 2 );
70- LCR_RECIPE_TYPE = TestUtils .createRecipeType ("ranged_ingredient_lcr_tests" , 3 , 3 , 5 , 4 );
71- CENTRIFUGE_RECIPE_TYPE = TestUtils .createRecipeType ("ranged_ingredient_centrifuge_tests" , 2 , 6 , 1 , 6 );
72-
73- CR_RECIPE_TYPE .getLookup ().addRecipe (CR_RECIPE_TYPE
70+ CR_RECIPE_TYPE = TestUtils .createRecipeType ("ranged_ingredient_cr_tests" , GTRecipeTypes .CHEMICAL_RECIPES );
71+ LCR_RECIPE_TYPE = TestUtils .createRecipeType ("ranged_ingredient_lcr_tests" ,
72+ GTRecipeTypes .LARGE_CHEMICAL_RECIPES );
73+ CENTRIFUGE_RECIPE_TYPE = TestUtils .createRecipeType ("ranged_ingredient_centrifuge_tests" ,
74+ GTRecipeTypes .CENTRIFUGE_RECIPES );
75+
76+ var CRHandler = CR_RECIPE_TYPE .getAdditionHandler ();
77+ CRHandler .beginStaging ();
78+ var LCRHandler = LCR_RECIPE_TYPE .getAdditionHandler ();
79+ LCRHandler .beginStaging ();
80+ var centHandler = CENTRIFUGE_RECIPE_TYPE .getAdditionHandler ();
81+ centHandler .beginStaging ();
82+
83+ CRHandler .addStaging (CR_RECIPE_TYPE
7484 .recipeBuilder (GTCEu .id ("test_ranged_input_item_cr" ))
7585 .inputItemsRanged (CR_IN , UniformInt .of (0 , 9 ))
7686 .inputItems (COBBLE )
@@ -79,15 +89,15 @@ public static void prepare(ServerLevel level) {
7989 .duration (2 )
8090 .buildRawRecipe ());
8191
82- CR_RECIPE_TYPE . getLookup (). addRecipe (CR_RECIPE_TYPE
92+ CRHandler . addStaging (CR_RECIPE_TYPE
8393 .recipeBuilder (GTCEu .id ("test_ranged_output_item_cr" ))
8494 .inputItems (CR_OUT )
8595 .outputItemsRanged (STONE , UniformInt .of (0 , 9 ))
8696 .EUt (GTValues .V [GTValues .HV ])
8797 .duration (2 )
8898 .buildRawRecipe ());
8999
90- LCR_RECIPE_TYPE . getLookup (). addRecipe (LCR_RECIPE_TYPE
100+ LCRHandler . addStaging (LCR_RECIPE_TYPE
91101 .recipeBuilder (GTCEu .id ("test_ranged_input_item_lcr" ))
92102 .inputItemsRanged (LCR_IN , UniformInt .of (0 , 9 ))
93103 .inputItems (COBBLE )
@@ -96,15 +106,15 @@ public static void prepare(ServerLevel level) {
96106 .duration (2 )
97107 .buildRawRecipe ());
98108
99- LCR_RECIPE_TYPE . getLookup (). addRecipe (LCR_RECIPE_TYPE
109+ LCRHandler . addStaging (LCR_RECIPE_TYPE
100110 .recipeBuilder (GTCEu .id ("test_ranged_output_item_lcr" ))
101111 .inputItems (LCR_OUT )
102112 .outputItemsRanged (STONE , UniformInt .of (0 , 9 ))
103113 .EUt (GTValues .V [GTValues .HV ])
104114 .duration (2 )
105115 .buildRawRecipe ());
106116
107- CENTRIFUGE_RECIPE_TYPE . getLookup (). addRecipe (CENTRIFUGE_RECIPE_TYPE
117+ centHandler . addStaging (CENTRIFUGE_RECIPE_TYPE
108118 .recipeBuilder (GTCEu .id ("test_ranged_input_item_cent" ))
109119 .inputItemsRanged (LCENT_IN , UniformInt .of (0 , 4 ))
110120 .inputItems (COBBLE )
@@ -113,13 +123,17 @@ public static void prepare(ServerLevel level) {
113123 .duration (4 )
114124 .buildRawRecipe ());
115125
116- CENTRIFUGE_RECIPE_TYPE . getLookup (). addRecipe (CENTRIFUGE_RECIPE_TYPE
126+ centHandler . addStaging (CENTRIFUGE_RECIPE_TYPE
117127 .recipeBuilder (GTCEu .id ("test_ranged_output_item_cent" ))
118128 .inputItems (LCENT_OUT )
119129 .outputItemsRanged (STONE , UniformInt .of (0 , 4 ))
120130 .EUt (GTValues .V [GTValues .IV ])
121131 .duration (4 )
122132 .buildRawRecipe ());
133+
134+ CRHandler .completeStaging ();
135+ LCRHandler .completeStaging ();
136+ centHandler .completeStaging ();
123137 }
124138
125139 private static MetaMachine getMetaMachine (BlockEntity entity ) {
0 commit comments