ItemButton

constructor(vararg stacks: ItemStack)(source)
constructor(stack: ItemStack, preDisplayDecorator: (ItemStack, Player) -> ItemStack)(source)
constructor(stacks: List<ItemStack>, preDisplayDecorator: (ItemStack, Player) -> ItemStack = { stack, _ -> stack })(source)

Parameters

stacks

The items to display. If multiple are provided, the button will automatically cycle through all of them. You must supply at least one item