DragEvent

class DragEvent(event: InventoryDragEvent)

Wrapper class for inventory drag events.

Since

2.0.0

Constructors

Link copied to clipboard
constructor(event: InventoryDragEvent)

Properties

Link copied to clipboard
val cursor: @Nullable ItemStack?

The item on the cursor

Link copied to clipboard
val newItems: @NotNull MutableMap<Int, ItemStack>

Map of slot numbers to items being added

Link copied to clipboard
val oldCursor: @NotNull ItemStack

The previous cursor item

Link copied to clipboard
val player: @NotNull HumanEntity

The player who triggered the event

Link copied to clipboard
val rawSlots: @NotNull MutableSet<Int>

Set of raw slot numbers affected

Link copied to clipboard
val slots: @NotNull MutableSet<Int>

Set of inventory slot numbers affected

Link copied to clipboard
val type: @NotNull DragType

The drag type

Functions

Link copied to clipboard
fun unsafe(): InventoryDragEvent

Gets the underlying Bukkit inventory drag event.