Gui

abstract class Gui(val rows: Int)

Base class for all GUIs.

Parameters

rows

The number of rows in the GUI (1-6).

Inheritors

Constructors

Link copied to clipboard
constructor(rows: Int)

Properties

Link copied to clipboard
lateinit var inventory: Inventory

The underlying Bukkit inventory managed by this GUI.

Link copied to clipboard
val rows: Int

Functions

Link copied to clipboard
abstract fun build(creator: GuiCreator)

Builds the GUI using the provided GuiCreator.

Link copied to clipboard
fun open(player: Player)

Opens the GUI for the specified player.

Link copied to clipboard
fun update()

Generates or updates the inventory based on the current configuration. This should be called whenever the GUI's state changes.