Class InvertedItemFilter

java.lang.Object
alexiil.mc.lib.attributes.item.filter.InvertedItemFilter
All Implemented Interfaces:
ItemFilter, ReadableItemFilter

public final class InvertedItemFilter extends Object implements ReadableItemFilter
  • Field Details

  • Constructor Details

    • InvertedItemFilter

      public InvertedItemFilter(ItemFilter delegate)
  • Method Details

    • matches

      public boolean matches(net.minecraft.item.ItemStack stack)
      Description copied from interface: ItemFilter
      Checks to see if this filter matches the given stack. Note that this must not care about ItemStack.getCount(), except in the case where the stack is ItemStack.isEmpty(), which isn't expected to return a useful result.
      Specified by:
      matches in interface ItemFilter
    • negate

      public ItemFilter negate()
      Specified by:
      negate in interface ItemFilter