ClickEvent

class ClickEvent(event: InventoryClickEvent)

Wrapper class for inventory click events.

Since

2.0.0

Constructors

Link copied to clipboard
constructor(event: InventoryClickEvent)

Properties

Link copied to clipboard
val action: @NotNull InventoryAction

The inventory action performed

Link copied to clipboard
val click: @NotNull ClickType

The click type

Link copied to clipboard
val currentItem: @Nullable ItemStack?

The item in the clicked slot

Link copied to clipboard
val cursor: @Nullable ItemStack?

The item on the cursor

Link copied to clipboard

The hotbar button pressed

Link copied to clipboard
val player: @NotNull HumanEntity

The player who triggered the event

Link copied to clipboard
val slot: Int

The clicked slot number

Link copied to clipboard
val slotType: @NotNull InventoryType.SlotType

The type of slot clicked

Functions

Link copied to clipboard
fun unsafe(): InventoryClickEvent

Gets the underlying Bukkit inventory click event.