Class InvertedItemFilter
java.lang.Object
alexiil.mc.lib.attributes.item.filter.InvertedItemFilter
- All Implemented Interfaces:
ItemFilter,ReadableItemFilter
-
Nested Class Summary
Nested classes/interfaces inherited from interface alexiil.mc.lib.attributes.item.filter.ItemFilter
ItemFilter.ItemFilterAsPredicate -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface alexiil.mc.lib.attributes.item.filter.ItemFilter
and, asPredicate, or
-
Field Details
-
delegate
-
-
Constructor Details
-
InvertedItemFilter
-
-
Method Details
-
matches
public boolean matches(net.minecraft.item.ItemStack stack)Description copied from interface:ItemFilterChecks to see if this filter matches the given stack. Note that this must not care aboutItemStack.getCount(), except in the case where the stack isItemStack.isEmpty(), which isn't expected to return a useful result.- Specified by:
matchesin interfaceItemFilter
-
negate
- Specified by:
negatein interfaceItemFilter
-