Interface MenuDragCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A callback interface for handling
This callback is invoked when a player drags items across slots in the menu inventory.
InventoryDragEvents in a Menu.This callback is invoked when a player drags items across slots in the menu inventory.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonDrag(@NotNull Player player, @NotNull InventoryDragEvent event) Called when a drag event occurs in the menu inventory.
-
Method Details
-
onDrag
Called when a drag event occurs in the menu inventory.- Parameters:
player- The player who performed the dragevent- The drag event
-