public interface IItemCondition
They may, for instance, require specific damage ranges or NBT tags. Custom implementations of this functional interface may contain any kind of condition.
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(IItemStack stack)
Returns true if the given stack matches the required conditions.
|
boolean matches(IItemStack stack)
stack - item stack to check