InventoryBuilder

The abstract implementation of the inventory builder

Inheritors

Properties

Link copied to clipboard
abstract val id: UUID

The inventory id

Link copied to clipboard
abstract val inventory: Inventory

The built inventory

Link copied to clipboard
abstract val player: Player

The owner of this inventory

Link copied to clipboard
abstract val slots: HashMap<Int, out Slot>

The slots

Link copied to clipboard
abstract val slotType: InventoryType

The slotType

Link copied to clipboard
abstract val title: Component

The title of this inventory

Functions

Link copied to clipboard
abstract fun build(): Inventory

Builds the current builder into the Bukkit API's Inventory

Link copied to clipboard
abstract fun close()

Close inventory for the current player

Link copied to clipboard
abstract fun destroy()

Destroys the current builder and the built inventory. The inventory will be closed for the player too.

Link copied to clipboard
abstract fun onClose(handler: InventoryCloseEvent.() -> Unit)

On close inventory

Link copied to clipboard
abstract fun slot(slot: Int, item: ItemStack)

Registers a slot

abstract fun slot(slot: Int, item: ItemStack, handler: InventoryClickEvent.() -> Unit)

Registers a slot with a click listener