Package com.minecolonies.api.util
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 TypeMethodDescriptionvoidaccept(IItemHandlerCapProvider provider, int slotIndex) Method executed when a match has been found.
-
Method Details
-
accept
Method executed when a match has been found.- Specified by:
acceptin interfaceObjIntConsumer<IItemHandlerCapProvider>- Parameters:
provider- The itemstack that matches the predicate for the search.slotIndex- The slotindex in which this itemstack was found.
-