@FunctionalInterface public interface ItemFilter extends java.util.function.Predicate<Item>
Item. For use with slots.| Modifier and Type | Method and Description |
|---|---|
static ItemFilter |
of(int amount)
Accepts any
Item that has a >= stack size than provided. |
static ItemFilter |
of(Item item)
Returns an
ItemFilter that accepts an Item of the same
type as provided. |
static ItemFilter |
of(java.lang.String id)
Returns an
ItemFilter that accepts an Item of the same
type as provided. |
static ItemFilter of(Item item)
ItemFilter that accepts an Item of the same
type as provided.item - The item typestatic ItemFilter of(java.lang.String id)
ItemFilter that accepts an Item of the same
type as provided.id - The item IDstatic ItemFilter of(int amount)
Item that has a >= stack size than provided.amount - The amount