- Enclosing class:
RecipeHelper
public static class RecipeHelper.Shaped
extends Object
Helper class to perform a shaped recipe match when ingredients that require testing are involved.
-
Constructor Summary
Constructors
-
Method Summary
static <T extends net.minecraft.world.item.ItemStack>
int[]
static <T extends net.minecraft.world.item.ItemStack>
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
isMatch
public static <T extends net.minecraft.world.item.ItemStack>
boolean isMatch(List<T> inputs,
List<? extends Predicate<T>> tests)
-
findMatches
public static <T extends net.minecraft.world.item.ItemStack>
int[] findMatches(List<T> inputs,
List<? extends Predicate<T>> tests)