Item Button
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
Parameters
stack
The item to display
pre Display Decorator
A function to apply to the button item after creating it