GuiBuilder

class GuiBuilder(val type: GuiType, val title: Component, val defaultPageKey: Any)(source)

Constructors

Link copied to clipboard
constructor(type: GuiType, title: Component, defaultPageKey: Any)

Types

Link copied to clipboard
Link copied to clipboard
inner class PageBuilder(val key: String, val number: Int)

Properties

Link copied to clipboard
Link copied to clipboard
val title: Component
Link copied to clipboard

Functions

Link copied to clipboard
inline fun events(builder: GuiBuilder.EventHandlerBuilder.() -> Unit)

Opens a new EventHandlerBuilder to build and set a new GuiEventHandler for the gui.

Link copied to clipboard
inline fun page(key: Any = UUID.randomUUID(), number: Int = pagesByNumber.keys.maxOrNull()?.plus(1) ?: 0, builder: GuiBuilder.PageBuilder.() -> Unit)

Add a new page to the gui.