animatedGui

fun Player.animatedGui(title: Component, slotType: InventoryType = InventoryType.CHEST_27, init: Animation.() -> Unit = {}): Animation

Creates an animated GUI. Uses the default GUI.

Return

The built animation

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.