button
fun button(slots: InventorySlotCompound<T>, itemStack: ItemStack, onClick: (GUIClickEvent<T>) -> Unit)
Content copied to clipboard
A button is an item protected from any player actions. If clicked, the specified onClick function is invoked.
A button is an item protected from any player actions. If clicked, the specified onClick function is invoked.