Interface InventoryFunctions.IMatchActionResult

All Superinterfaces:
ObjIntConsumer<IItemHandlerCapProvider>
Enclosing class:
InventoryFunctions
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 InventoryFunctions.IMatchActionResult extends ObjIntConsumer<IItemHandlerCapProvider>
Functional interface describing a Action that is executed ones a Match (the given ItemStack) is found in the given slot.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(IItemHandlerCapProvider provider, int slotIndex)
    Method executed when a match has been found.
  • Method Details

    • accept

      void accept(IItemHandlerCapProvider provider, int slotIndex)
      Method executed when a match has been found.
      Specified by:
      accept in interface ObjIntConsumer<IItemHandlerCapProvider>
      Parameters:
      provider - The itemstack that matches the predicate for the search.
      slotIndex - The slotindex in which this itemstack was found.