setHotbar

abstract suspend fun setHotbar(stacks: Array<ItemStack>): Layout

Sets the hotbar contents for this layout.

Return

the updated Layout instance

Parameters

stacks

array of ItemStacks to use as the hotbar (length within 1..8)

Throws

if stacks length is out of acceptable range