button

fun button(slots: GuiSlotCompound, icon: GuiIcon, onClick: suspend (GuiClickEvent) -> Unit)(source)

Adds a button. A button has custom onClick logic.