inventory

fun inventory(rows: Int = 3, title: Component, builder: GuiContext.() -> Unit): Gui

Creates a declarative Gui instance.

Return

A new Gui instance.

Parameters

rows

The number of rows (1-6).

title

The title of the GUI.

builder

The builder block for the GuiContext.