Interface ModifyDefaultComponentsEvent.ItemWithComponentsPredicate
- Enclosing class:
ModifyDefaultComponentsEvent
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface ModifyDefaultComponentsEvent.ItemWithComponentsPredicate
Evaluates a condition on an
Item
and its associated DataComponentGetter prior to binding components.-
Method Summary
Modifier and TypeMethodDescriptionbooleantest(Item item, DataComponentGetter components) Evaluates a condition on the givenItemand its associatedDataComponentGetterprior to binding components.
-
Method Details
-
test
Evaluates a condition on the givenItemand its associatedDataComponentGetterprior to binding components.- Parameters:
item- the item to evaluatecomponents- the data component getter for components to be bound- Returns:
- Whether the condition is satisfied
-