Interface SlotClickHandler
-
- 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 SlotClickHandler extends InventoryCallbackHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
handle(Cause cause, Container container, Slot slot, int slotIndex, ClickType<?> clickType)
Handler for inventory click callbacks exceptClickTypes.KEY_SWAP
seeKeySwapHandler
-
-
-
Method Detail
-
handle
boolean handle(Cause cause, Container container, Slot slot, int slotIndex, ClickType<?> clickType)
Handler for inventory click callbacks exceptClickTypes.KEY_SWAP
seeKeySwapHandler
- Parameters:
cause
- the causecontainer
- the containerslot
- the primary clicked slotslotIndex
- the primary clicked slot indexclickType
- the type of click- Returns:
- false to prevent the action
-
-