Class IngredientUtil
java.lang.Object
com.blamejared.crafttweaker.api.util.IngredientUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanConflict(net.minecraft.world.item.crafting.Ingredient a, net.minecraft.world.item.crafting.Ingredient b) static <T extends Predicate<U>,U>
booleancanConflict(T a, T b, Predicate<T> isEmpty, Function<T, U[]> elements, BiPredicate<U, U> compare) static booleandoIngredientsConflict(List<net.minecraft.world.item.crafting.Ingredient> first, List<net.minecraft.world.item.crafting.Ingredient> second) static <T extends Predicate<U>,U>
booleandoIngredientsConflict(List<T> first, List<T> second, Predicate<T> isEmpty, Function<T, U[]> elements, BiPredicate<U, U> compare) static List<net.minecraft.world.item.ItemStack> findIntersection(net.minecraft.world.item.crafting.Ingredient a, net.minecraft.world.item.crafting.Ingredient b) findIntersection(T a, T b, Predicate<T> isEmpty, Function<T, U[]> elements, BiPredicate<U, U> compare)
-
Constructor Details
-
IngredientUtil
public IngredientUtil()
-
-
Method Details
-
canConflict
public static boolean canConflict(net.minecraft.world.item.crafting.Ingredient a, net.minecraft.world.item.crafting.Ingredient b) -
canConflict
public static <T extends Predicate<U>,U> boolean canConflict(T a, T b, Predicate<T> isEmpty, Function<T, U[]> elements, BiPredicate<U, U> compare) -
findIntersection
public static List<net.minecraft.world.item.ItemStack> findIntersection(net.minecraft.world.item.crafting.Ingredient a, net.minecraft.world.item.crafting.Ingredient b) -
doIngredientsConflict
-
doIngredientsConflict
-
findIntersection
public static <T extends Predicate<U>,U> List<U> findIntersection(T a, T b, Predicate<T> isEmpty, Function<T, U[]> elements, BiPredicate<U, U> compare)
-