setInventory

open suspend override fun setInventory(stacks: Array<ItemStack>): Layout

Sets the full inventory contents for this layout.

Return

the updated Layout instance

Parameters

stacks

array of ItemStacks to use as the inventory (length within 1..27)

Throws

if stacks is out of acceptable range