Package com.minecolonies.api.util
Interface InventoryFunctions.IMatchActionResultHandler
- All Superinterfaces:
ObjIntConsumer<net.minecraftforge.items.IItemHandler>
- 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.IMatchActionResultHandler
extends ObjIntConsumer<net.minecraftforge.items.IItemHandler>
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(net.minecraftforge.items.IItemHandler handler, int slotIndex) Method executed when a match has been found.
-
Method Details
-
accept
void accept(net.minecraftforge.items.IItemHandler handler, int slotIndex) Method executed when a match has been found.- Specified by:
acceptin interfaceObjIntConsumer<net.minecraftforge.items.IItemHandler>- Parameters:
handler- The itemstack that matches the predicate for the search.slotIndex- The slotindex in which this itemstack was found.
-