Interface ReadableItemFilter
- All Superinterfaces:
ItemFilter
- All Known Subinterfaces:
ResolvableItemFilter
- All Known Implementing Classes:
AggregateItemFilter,ConstantItemFilter,ExactItemFilter,ExactItemSetFilter,ExactItemStackFilter,InvertedItemFilter,ItemClassFilter,ItemTagFilter
public interface ReadableItemFilter extends ItemFilter
Marker interface for
ItemFilter that indicates that object obtaining instances of this might be able to read
the real contents.
NOTE: This can only be implemented by classes included in LibBlockAttributes!. (As many implementations must implement direct support for subclasses of this). Note, however, that LBA may add new implementing classes in the future - so it is a bad idea to crash if this list isn't complete.
As such you should pretend that this interface is "sealed", and the only valid subtypes are:
ConstantItemFilterExactItemFilterExactItemSetFilterExactItemStackFilterItemClassFilterExactItemSetFilterAggregateItemFilterResolvableItemFilter
ResolvableItemFilter is not sealed, but it must only return ReadableItemFilters
that are ReadableItemFilters, other than ResolvableItemFilter.-
Nested Class Summary
Nested classes/interfaces inherited from interface alexiil.mc.lib.attributes.item.filter.ItemFilter
ItemFilter.ItemFilterAsPredicate -
Method Summary
Static Methods Modifier and Type Method Description static voidcheckValidity(ReadableItemFilter filter)Methods inherited from interface alexiil.mc.lib.attributes.item.filter.ItemFilter
and, asPredicate, matches, negate, or