toggle menu
silk
1.10.4
jvm
switch theme
search in API
silk-igui
/
net.silkmc.silk.igui.elements
/
GuiButton
Gui
Button
open
class
GuiButton
(
val
icon
:
GuiIcon
,
onClick
:
suspend
(
GuiClickEvent
)
->
Unit
)
:
GuiPlaceholder
(
source
)
Inheritors
GuiButtonCompoundScroll
GuiButtonPageChange
Members
Constructors
Gui
Button
Link copied to clipboard
constructor
(
icon
:
GuiIcon
,
onClick
:
suspend
(
GuiClickEvent
)
->
Unit
)
Properties
icon
Link copied to clipboard
val
icon
:
GuiIcon
Functions
get
Item
Stack
Link copied to clipboard
open
suspend override
fun
getItemStack
(
slotIndex
:
Int
)
:
ItemStack
on
Click
Link copied to clipboard
open
suspend override
fun
onClick
(
clickEvent
:
GuiClickEvent
)
should
Cancel
Link copied to clipboard
open
override
fun
shouldCancel
(
clickEvent
:
GuiClickEvent
)
:
Boolean
start
Using
Link copied to clipboard
open
override
fun
startUsing
(
gui
:
Gui
)
stop
Using
Link copied to clipboard
open
override
fun
stopUsing
(
gui
:
Gui
)