@@ -79,18 +79,24 @@ public void addRecipes(AddRecipesCallback.RecipeHandler handler) {
7979 handler .register (AE2 .id ("compacting" , "matter_plastics" ),
8080 id -> new CompactingRecipe (new FreePRP (id )
8181 .setIngredient (matterBall , matterBall , matterBall , matterBall ,
82- matterBall , matterBall , matterBall , matterBall , matterBall )
82+ matterBall , matterBall , matterBall , matterBall ,
83+ matterBall )
8384 .setResult (CABF .asProcessingOutput ("matter_plastics" ))
8485 .setHeatRequirement (HeatCondition .SUPERHEATED )));
8586 }
8687
8788 // Ad Astra
8889 {
89- Arrays .stream (AD_ASTRA_MATERIALS ).forEach (material -> Arrays .stream (AD_ASTRA_DECOR_TYPES ).forEach (
90- type -> handler .register (recipeId ("stonecutting" , material + "_" + type ),
91- id -> VanillaRecipeBuilders .stonecuttingRecipe (id , "" , Ingredient .ofTag (
92- TagKey .of (Registry .ITEM_KEY , C .id (material + "_plates" ))),
93- AD .asStack (2 , material + "_" + type )))));
90+ Arrays .stream (AD_ASTRA_MATERIALS )
91+ .forEach (material -> Arrays .stream (AD_ASTRA_DECOR_TYPES ).forEach (
92+ type -> handler .register (
93+ recipeId ("stonecutting" , material + "_" + type ),
94+ id -> VanillaRecipeBuilders .stonecuttingRecipe (
95+ id , "" , Ingredient .ofTag (
96+ TagKey .of (Registry .ITEM_KEY ,
97+ C .id (material + "_plates" ))),
98+ AD .asStack (2 , material + "_"
99+ + type )))));
94100
95101 final String [] AD_ASTRA_COMPRESSED_MATERIALS = { "desh" , "ostrum" , "calorite" };
96102 Arrays .stream (AD_ASTRA_COMPRESSED_MATERIALS ).forEach (material -> handler .register (
@@ -102,22 +108,29 @@ public void addRecipes(AddRecipesCallback.RecipeHandler handler) {
102108
103109 // Indrev
104110 {
105- final String [] INDREV_PLATES = { "bronze" , "electrum" , "lead" , "silver" , "steel" , "tin" , "tungsten" };
111+ final String [] INDREV_PLATES = { "bronze" , "electrum" , "lead" , "silver" , "steel" , "tin" ,
112+ "tungsten" };
106113
107- Arrays .stream (INDREV_PLATES ).forEach (plate -> handler .register (recipeId ("pressing" , plate + "_plate" ),
108- id -> new PressingRecipe (new FreePRP (id ).setIngredient (IR .asIngredient (plate + "_ingot" ))
114+ Arrays .stream (INDREV_PLATES ).forEach (plate -> handler .register (
115+ recipeId ("pressing" , plate + "_plate" ),
116+ id -> new PressingRecipe (new FreePRP (id )
117+ .setIngredient (IR .asIngredient (plate + "_ingot" ))
109118 .setResult (IR .asProcessingOutput (plate + "_plate" )))));
110119
111120 handler .register (recipeId ("compacting" , "aquamarine_quartz" ),
112- id -> new CompactingRecipe (new FreePRP (id ).setIngredient (IR .asIngredient ("nikolite_dust" ))
113- .setFluidIngredient (FluidIngredient .fromFluid (CabfFluids .REDSTONE , FluidConstants .NUGGET ))
121+ id -> new CompactingRecipe (new FreePRP (id )
122+ .setIngredient (IR .asIngredient ("nikolite_dust" ))
123+ .setFluidIngredient (FluidIngredient .fromFluid (
124+ CabfFluids .REDSTONE , FluidConstants .NUGGET ))
114125 .setResult (CABF .asProcessingOutput ("aquamarine_quartz" ))
115126 .setHeatRequirement (HeatCondition .HEATED )));
116127
117128 handler .register (recipeId ("sandpaper_polishing" , "aquamarine_quartz" ),
118129 id -> new SandPaperPolishingRecipe (
119- new FreePRP (id ).setIngredient (CABF .asIngredient ("aquamarine_quartz" ))
120- .setResult (IR .asProcessingOutput ("nikolite_ingot" ))));
130+ new FreePRP (id ).setIngredient (
131+ CABF .asIngredient ("aquamarine_quartz" ))
132+ .setResult (IR .asProcessingOutput (
133+ "nikolite_ingot" ))));
121134 }
122135
123136 // Dusts
@@ -136,20 +149,24 @@ public void addRecipes(AddRecipesCallback.RecipeHandler handler) {
136149 id -> new FillingRecipe (
137150 new FreePRP (id ).setIngredient (CABF .asIngredient ("nickel_ingot" ))
138151 .setFluidIngredient (FluidIngredient .fromFluid (
139- TC .asFluid ("molten_iron" ), FluidConstants .NUGGET * 6 ))
140- .setResult (CABF .asProcessingOutput ("nickel_compound" ))));
152+ TC .asFluid ("molten_iron" ),
153+ FluidConstants .NUGGET * 6 ))
154+ .setResult (CABF .asProcessingOutput (
155+ "nickel_compound" ))));
141156
142157 // Saws
143158 handler .register (recipeId ("crafting" , "stone_rod" ),
144159 id -> VanillaRecipeBuilders .shapedRecipe ("S" , "S" )
145- .ingredient ('S' , Tags .Items .COBBLESTONE ).output (CABF .asStack ("stone_rod" ))
160+ .ingredient ('S' , Tags .Items .COBBLESTONE )
161+ .output (CABF .asStack ("stone_rod" ))
146162 .build (id , "" ));
147163
148164 handler .register (recipeId ("crafting" , "stone_saw" ),
149165 id -> VanillaRecipeBuilders .shapedRecipe ("SRR" , "SMR" )
150166 .ingredient ('S' , MC .asIngredient ("stick" ))
151167 .ingredient ('R' , CABF .asIngredient ("stone_rod" ))
152- .ingredient ('M' , MC .asIngredient ("flint" )).output (CABF .asStack ("stone_saw" ))
168+ .ingredient ('M' , MC .asIngredient ("flint" ))
169+ .output (CABF .asStack ("stone_saw" ))
153170 .build (id , "" ));
154171
155172 handler .register (recipeId ("crafting" , "iron_saw" ),
@@ -191,13 +208,15 @@ public void addRecipes(AddRecipesCallback.RecipeHandler handler) {
191208 // Redstone
192209 handler .register (recipeId ("melting" , "redstone" ),
193210 id -> RecipeManager .deserialize (id ,
194- RecipeBuilderUtil .generateMelting (MC .id ("redstone" ), CABF .id ("redstone" ),
211+ RecipeBuilderUtil .generateMelting (MC .id ("redstone" ),
212+ CABF .id ("redstone" ),
195213 FluidConstants .INGOT , null , 0 , 250 , 15 )));
196214
197215 handler .register (recipeId ("melting" , "redstone_block" ),
198216 id -> RecipeManager .deserialize (id ,
199217 RecipeBuilderUtil .generateMelting (MC .id ("redstone_block" ),
200- CABF .id ("redstone" ), FluidConstants .BLOCK , null , 0 , 250 , 135 )));
218+ CABF .id ("redstone" ), FluidConstants .BLOCK , null , 0 , 250 ,
219+ 135 )));
201220 }
202221
203222 @ Override
@@ -221,6 +240,9 @@ public void removeRecipes(RemoveRecipesCallback.RecipeHandler handler) {
221240 handler .remove (TC .id ("smeltery" , "alloys" , "molten_brass" ));
222241 handler .remove (TC .id ("smeltery" , "alloys" , "molten_invar" ));
223242
243+ handler .removeIf (r -> r .getId ().getNamespace ().equals (TC .getModId ())
244+ && r .getId ().getPath ().startsWith ("compat/create" ));
245+
224246 // Remove wrenches except Create's and AE2's
225247 handler .removeIf (r -> !CR .checkContains (r ) && !AE2 .checkContains (r ) &&
226248 r .getOutput ().getItem ().getRegistryName ().getPath ().contains ("wrench" ));
0 commit comments