kts4mc-template-1.21.11
Toggle table of contents
1.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
kts4mc-template-1.21.11
kts4mc-template-1.21.11
/
top.katton.util
/
Event
/
Companion
Companion
object
Companion
Members
Properties
fabric
Event
Registry
Link copied to clipboard
val
fabricEventRegistry
:
MutableMap
<
FabricEvent
<
*
>
,
MutableList
<
Event
<
*
>
>
>
Functions
clear
Handlers
By
Owner
Link copied to clipboard
fun
clearHandlersByOwner
(
owner
:
String
)
create
Reloadable
Link copied to clipboard
fun
<
T
:
Any
,
U
:
Any
>
createReloadable
(
event
:
FabricEvent
<
U
>
,
adapter
:
(
T
)
->
U
,
callback
:
(
List
<
T
>
)
->
T
)
:
Event
<
T
>
current
Script
Owner
Link copied to clipboard
fun
currentScriptOwner
(
)
:
String
?
with
Script
Owner
Link copied to clipboard
fun
<
R
>
withScriptOwner
(
owner
:
String
?
,
action
:
(
)
->
R
)
:
R