ItemButton

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


constructor(stack: ItemStack, preDisplayDecorator: (ItemStack, Player) -> ItemStack)(source)

Parameters

stack

The item to display

preDisplayDecorator

A function to apply to the button item after creating it