21 lines
628 B
Markdown
21 lines
628 B
Markdown
---
|
|
title: button -
|
|
---
|
|
//[KSpigot](../../index.md)/[net.axay.kspigot.inventory](../index.md)/[InventoryGUIPageBuilder](index.md)/[button](button.md)
|
|
|
|
|
|
|
|
# button
|
|
[jvm]
|
|
Brief description
|
|
|
|
|
|
A button is an item protected from any player actions. If clicked, the specified onClick function is invoked.
|
|
|
|
|
|
Content
|
|
fun [button](button.md)(slots: [InventorySlotCompound](../-inventory-slot-compound/index.md)<[T](index.md)>, itemStack: ItemStack, onClick: ([InventoryGUIClickEvent](../-inventory-g-u-i-click-event/index.md)<[T](index.md)>) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html))
|
|
|
|
|
|
|