Package-level declarations
Types
Link copied to clipboard
Context for GUI click events.
Link copied to clipboard
A context class that provides a more declarative DSL for building GUIs. This class also supports state management.
Link copied to clipboard
class GuiCreator
A creator class for building the initial state of a GUI.
Link copied to clipboard
Listener object for processing GUI events.
Link copied to clipboard
A context class for GUIs that support pagination.
Link copied to clipboard
class SlotCreator
A builder class for configuring individual slots in a GUI.
Functions
Link copied to clipboard
fun Player.awaitChatInput(plugin: Plugin, timeoutTicks: Long? = null, onInput: (Component) -> Unit, onCancel: () -> Unit = {})
Utility for getting chat input from a player.
Link copied to clipboard
fun GuiCreator.fill(material: Material, pickable: Boolean = false, creator: SlotCreator.() -> Unit = {})
Fills all slots in the GUI with a material.
Link copied to clipboard
Creates a simple GUI (Inventory) using a DSL.
Link copied to clipboard
fun <T> paginatedInventory(rows: Int = 6, title: Component, items: List<T> = emptyList(), builder: PaginatedGuiContext<T>.() -> Unit): Gui
Creates a paginated Gui instance.
Link copied to clipboard
Includes another builder block as a template.