KtInventoryButton

Represents a clickable button in a KtInventory.

Since

2.0.0

Parameters

T

The type of inventory this button belongs to

Types

Link copied to clipboard
class ClickEvent<out T : KtInventoryBase>(val inventory: T, event: InventoryClickEvent)

Contains information about a button click event.

Properties

Link copied to clipboard
val itemStack: ItemStack

The item to display for this button

Link copied to clipboard

Callback function executed when button is clicked

Functions

Link copied to clipboard