toggle menu
silk
1.10.4
jvm
switch theme
search in API
silk-igui
/
net.silkmc.silk.igui.elements
/
GuiFreeSlot
Gui
Free
Slot
class
GuiFreeSlot
(
onClick
:
suspend
(
GuiClickEvent
)
->
Unit
?
)
:
GuiElement
(
source
)
Members
Constructors
Gui
Free
Slot
Link copied to clipboard
constructor
(
onClick
:
suspend
(
GuiClickEvent
)
->
Unit
?
)
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
fun
startUsing
(
gui
:
Gui
)
stop
Using
Link copied to clipboard
open
fun
stopUsing
(
gui
:
Gui
)