button

fun button(slots: InventorySlotCompound<T>, itemStack: ItemStack, onClick: (InventoryGUIClickEvent<T>) -> Unit)

A button is an item protected from any player actions. If clicked, the specified onClick function is invoked.