of

fun of(stack: ItemStack?, preDisplayDecorator: (ItemStack, Player) -> ItemStack): Item(source)
fun of(stacks: List<ItemStack>, preDisplayDecorator: (ItemStack, Player) -> ItemStack = { stack, _ -> stack }): ItemButton(source)


fun of(vararg stacks: ItemStack): ItemButton(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


fun of(stack: ItemStack, preDisplayDecorator: (ItemStack, Player) -> ItemStack): ItemButton(source)

Parameters

stack

The item to display

preDisplayDecorator

A function to apply to the button item after creating it