create Button
fun createButton(itemStack: ItemStack, onClick: (KtInventoryButton.ClickEvent<AbstractKtInventory>) -> Unit): KtInventoryButton<AbstractKtInventory>
Creates a new inventory button with the specified item and click handler
Return
The created button instance
Since
2.0.0
Parameters
item Stack
The item to display for this button
on Click
The handler for click events on this button