@@ -507,17 +507,7 @@ protected ValidationResult<Recipe> postValidateRecipe(@NotNull ValidationResult<
507
507
508
508
@ Nullable
509
509
public Recipe findRecipe (long voltage , IItemHandlerModifiable inputs , IMultipleTankHandler fluidInputs ) {
510
- return this .findRecipe (voltage , GTUtility .itemHandlerToList (inputs ), GTUtility .fluidHandlerToList (fluidInputs ), null );
511
- }
512
-
513
- @ Nullable
514
- public Recipe findRecipe (long voltage , IItemHandlerModifiable inputs , IMultipleTankHandler fluidInputs , Predicate <Recipe > extraPredicate ) {
515
- return this .findRecipe (voltage , GTUtility .itemHandlerToList (inputs ), GTUtility .fluidHandlerToList (fluidInputs ), extraPredicate );
516
- }
517
-
518
- @ Nullable
519
- public Recipe findRecipe (long voltage , List <ItemStack > inputs , List <FluidStack > fluidInputs , Predicate <Recipe > extraPredicate ) {
520
- return findRecipe (voltage , inputs , fluidInputs , false , extraPredicate );
510
+ return this .findRecipe (voltage , GTUtility .itemHandlerToList (inputs ), GTUtility .fluidHandlerToList (fluidInputs ));
521
511
}
522
512
523
513
/**
@@ -530,7 +520,7 @@ public Recipe findRecipe(long voltage, List<ItemStack> inputs, List<FluidStack>
530
520
*/
531
521
@ Nullable
532
522
public Recipe findRecipe (long voltage , List <ItemStack > inputs , List <FluidStack > fluidInputs ) {
533
- return findRecipe (voltage , inputs , fluidInputs , false , null );
523
+ return findRecipe (voltage , inputs , fluidInputs , false );
534
524
}
535
525
536
526
/**
@@ -545,22 +535,6 @@ public Recipe findRecipe(long voltage, List<ItemStack> inputs, List<FluidStack>
545
535
@ Nullable
546
536
public Recipe findRecipe (long voltage , final List <ItemStack > inputs , final List <FluidStack > fluidInputs ,
547
537
boolean exactVoltage ) {
548
- return findRecipe (voltage , inputs , fluidInputs , exactVoltage , null );
549
- }
550
-
551
- /**
552
- * Finds a Recipe matching the Fluid and/or ItemStack Inputs.
553
- *
554
- * @param voltage Voltage of the Machine or Long.MAX_VALUE if it has no Voltage
555
- * @param inputs the Item Inputs
556
- * @param fluidInputs the Fluid Inputs
557
- * @param exactVoltage should require exact voltage matching on recipe. used by craftweaker
558
- * @param extraPredicate optional extra filter predicate
559
- * @return the Recipe it has found or null for no matching Recipe
560
- */
561
- @ Nullable
562
- public Recipe findRecipe (long voltage , final List <ItemStack > inputs , final List <FluidStack > fluidInputs ,
563
- boolean exactVoltage , Predicate <Recipe > extraPredicate ) {
564
538
final List <ItemStack > items = inputs .stream ().filter (s -> !s .isEmpty ()).collect (Collectors .toList ());
565
539
final List <FluidStack > fluids = fluidInputs .stream ().filter (f -> f != null && f .amount != 0 )
566
540
.collect (Collectors .toList ());
@@ -574,7 +548,7 @@ public Recipe findRecipe(long voltage, final List<ItemStack> inputs, final List<
574
548
// there is not enough voltage to consider the recipe valid
575
549
return false ;
576
550
}
577
- return recipe .matches (false , inputs , fluidInputs ) && ( extraPredicate == null || extraPredicate . test ( recipe )) ;
551
+ return recipe .matches (false , inputs , fluidInputs );
578
552
});
579
553
}
580
554
0 commit comments