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 Type
    Method
    Description
    boolean
    test(Item item, DataComponentGetter components)
    Evaluates a condition on the given Item and its associated DataComponentGetter prior to binding components.
  • Method Details

    • test

      boolean test(Item item, DataComponentGetter components)
      Evaluates a condition on the given Item and its associated DataComponentGetter prior to binding components.
      Parameters:
      item - the item to evaluate
      components - the data component getter for components to be bound
      Returns:
      Whether the condition is satisfied