Interface IFilteringItem

All Known Implementing Classes:
ClassifyFilterItem, TagFilterItem

public interface IFilteringItem
Implement this on items which can be used to as filters. E.g. the Tag Filter item. Such items can be passed as the first parameter to IItemRegistry.doesItemMatchFilter(ItemStack, ItemStack, boolean, boolean, boolean)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matchFilter(net.minecraft.world.item.ItemStack filterStack, net.minecraft.world.item.ItemStack item)
    Does the given item's match the given filter stack's filtering criteria?
  • Method Details

    • matchFilter

      boolean matchFilter(net.minecraft.world.item.ItemStack filterStack, net.minecraft.world.item.ItemStack item)
      Does the given item's match the given filter stack's filtering criteria?
      Parameters:
      filterStack - the stack to filter against; must be of an item implementing this interface
      item - the item to check
      Returns:
      true if there's a match, false otherwise