linkedGui

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

Opens a linked GUI for a player. Unlike the default GUI, modifying the LinkedInventoryBuilder observes changes to the builder and modifies the inventory on change. Thus, modifications afterwards in the builder will also be applied to the built inventory.

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.