gui

fun Player.gui(title: Component, slotType: InventoryType = InventoryType.CHEST_27, init: SimpleInventoryBuilder.() -> Unit = {}): Inventory

Opens the default GUI for a player.

Return

The built inventory

Parameters

title

The title of the inventory. This is the text shown at the top of the inventory.

slotType

The Inventory's Size. Defaults to 27(3 * 9) if not set.

init

Initialize the inventory builder. Creates a default inventory if not set.