Interface IItemStackQuery

All Superinterfaces:
Predicate<net.minecraft.world.item.ItemStack>
All Known Subinterfaces:
IItemStackQuery.IItemStackNBTQuery, IItemStackQuery.IItemStackQueryRecipe
All Known Implementing Classes:
IItemStackQuery.IngredientQuery, IItemStackQuery.ItemQuery, IItemStackQuery.ItemStackQuery
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IItemStackQuery extends Predicate<net.minecraft.world.item.ItemStack>
  • Field Details

  • Method Details

    • of

      static IItemStackQuery of(net.minecraft.world.item.Item item)
    • of

      static IItemStackQuery of(net.minecraft.world.item.ItemStack stack)
    • of

      static IItemStackQuery of(net.minecraft.world.level.block.Block block)
    • matches

      boolean matches(net.minecraft.world.item.ItemStack stack)
    • test

      default boolean test(net.minecraft.world.item.ItemStack stack)
      Specified by:
      test in interface Predicate<net.minecraft.world.item.ItemStack>
    • toSlotFilter

      default BiPredicate<net.minecraft.world.item.ItemStack,Integer> toSlotFilter(int... slots)
    • toSlotFilter

      default BiPredicate<net.minecraft.world.item.ItemStack,Integer> toSlotFilter(Predicate<Integer> slotPredicate)
    • toSlotFilter

      default BiPredicate<net.minecraft.world.item.ItemStack,Integer> toSlotFilter(int min, int max)
    • toSlotFilter

      default BiPredicate<net.minecraft.world.item.ItemStack,Integer> toSlotFilter()