Class IngredientUtil

java.lang.Object
com.blamejared.crafttweaker.api.util.IngredientUtil

public final class IngredientUtil extends Object
  • 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

      public static boolean doIngredientsConflict(List<net.minecraft.world.item.crafting.Ingredient> first, List<net.minecraft.world.item.crafting.Ingredient> second)
    • doIngredientsConflict

      public static <T extends Predicate<U>, U> boolean doIngredientsConflict(List<T> first, List<T> second, Predicate<T> isEmpty, Function<T,U[]> elements, BiPredicate<U,U> compare)
    • 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)