Macrocosm
0.5.2-alpha
jvm
Macrocosm
/
space.maxus.macrocosm.util.general
/
MutableButton
Mutable
Button
class
MutableButton
<
T
:
ForInventory
>
(
var
currentDisplay
:
ItemStack
,
val
handler
:
(
MutableButton
<
T
>
,
GUIClickEvent
<
T
>
)
->
ItemStack
)
:
GUIElement
<
T
>
(
source
)
Members
Constructors
Mutable
Button
Link copied to clipboard
constructor
(
currentDisplay
:
ItemStack
,
handler
:
(
MutableButton
<
T
>
,
GUIClickEvent
<
T
>
)
->
ItemStack
)
Functions
get
Item
Stack
Link copied to clipboard
open
override
fun
getItemStack
(
slot
:
Int
)
:
ItemStack
on
Click
Link copied to clipboard
override
fun
onClick
(
clickEvent
:
GUIClickEvent
<
T
>
)
Properties
current
Display
Link copied to clipboard
var
currentDisplay
:
ItemStack
handler
Link copied to clipboard
val
handler
:
(
MutableButton
<
T
>
,
GUIClickEvent
<
T
>
)
->
ItemStack