GuiClickEvent

data class GuiClickEvent(val player: Player, val slot: Int, val bukkitEvent: InventoryClickEvent)

Context for GUI click events.

Constructors

Link copied to clipboard
constructor(player: Player, slot: Int, bukkitEvent: InventoryClickEvent)

Properties

Link copied to clipboard
val bukkitEvent: InventoryClickEvent

The underlying Bukkit InventoryClickEvent.

Link copied to clipboard
val currentItem: ItemStack?

Returns the item that was clicked, if any.

Link copied to clipboard
val player: Player

The player who clicked.

Link copied to clipboard
val slot: Int

The index of the clicked slot.