All Superinterfaces:
Predicate<net.minecraft.world.item.ItemStack>
All Known Implementing Classes:
ItemFilter.Combined, ItemFilter.None, ItemFilter.Simple, ItemFilter.Simple.Ingredient, ItemFilter.Simple.ItemLike, ItemFilter.Simple.ItemStack, ItemFilter.Simple.TagKey

public interface ItemFilter extends Predicate<net.minecraft.world.item.ItemStack>
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<ItemFilter> CODEC
    • NETWORK_CODEC

      static final com.mojang.serialization.Codec<ItemFilter> NETWORK_CODEC
  • Method Details

    • none

      static ItemFilter none()
    • exactly

      static ItemFilter.Builder exactly(int amount)
    • exactly

      static ItemFilter exactly(net.minecraft.world.item.ItemStack stack)
    • atLeast

      static ItemFilter.Builder atLeast(int amount)
    • atLeast

      static ItemFilter atLeast(net.minecraft.world.item.ItemStack stack)
    • atMost

      static ItemFilter.Builder atMost(int amount)
    • atMost

      static ItemFilter atMost(net.minecraft.world.item.ItemStack stack)
    • anyOf

      static ItemFilter anyOf(ItemFilter... filters)
    • anyOf

      static ItemFilter anyOf(Collection<ItemFilter> filters)
    • test

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

      @Nullable @Nullable ItemFilter.Simple getMatchingFilter(net.minecraft.world.item.ItemStack stack)
    • getMatchedStacks

      net.minecraft.world.item.ItemStack[] getMatchedStacks()