onDrag

open fun onDrag(event: InventoryDragEvent)

Handles drag events in the inventory. Drag events can only involve a single virtual inventory, and if the drag involves any slots that are not associated with a virtual inventory, the event is cancelled.

Parameters

event

The InventoryDragEvent