Interface KeySwapHandler
- 
- All Superinterfaces:
 InventoryCallbackHandler
- 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 interface KeySwapHandler extends InventoryCallbackHandler
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandle(Cause cause, Container container, Slot slot, int slotIndex, ClickType<?> clickType, Slot slot2)Handler for inventoryClickTypes.KEY_SWAPcallbacks. 
 - 
 
- 
- 
Method Detail
- 
handle
boolean handle(Cause cause, Container container, Slot slot, int slotIndex, ClickType<?> clickType, Slot slot2)
Handler for inventoryClickTypes.KEY_SWAPcallbacks.- Parameters:
 cause- the causecontainer- the containerslot- the primary clicked slotslotIndex- the primary clicked slot indexclickType- the type of clickslot2- the secondary slot in the interaction.- Returns:
 - false to prevent the action
 
 
 - 
 
 -