Package me.desht.pneumaticcraft.api.item
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 TypeMethodDescriptionbooleanmatchFilter(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 interfaceitem- the item to check- Returns:
- true if there's a match, false otherwise
-