BetterHud
Toggle table of contents
1.12.2-SNAPSHOT-407
fabric-api
Platform filter
fabric-api
Switch theme
Search in API
BetterHud
BetterHud/api/fabric-api
/
kr.toxicity.hud.api.fabric.event
/
EventRegistry
Event
Registry
class
EventRegistry
<
T
>
Event registry of BetterHud
Parameters
<T>
event type
Members
Constructors
Event
Registry
Link copied to clipboard
constructor
(
)
Types
Unit
Link copied to clipboard
class
Unit
Unit class
Properties
UNIT
Link copied to clipboard
val
UNIT
:
EventRegistry.Unit
Unit instance
Functions
call
Link copied to clipboard
@
ApiStatus.Internal
open
fun
call
(
@
NotNull
t
:
@
NotNull
T
)
Calls event.
clear
Link copied to clipboard
@
ApiStatus.Internal
open
fun
clear
(
)
Clears all temp listener.
clear
All
Link copied to clipboard
@
ApiStatus.Internal
open
fun
clearAll
(
)
Clears all temp listeners from all registries.
register
Link copied to clipboard
@
NotNull
open
fun
register
(
@
NotNull
consumer
:
@
NotNull
Consumer
<
in
T
>
)
:
@
NotNull
EventRegistry
<
T
>
Registers listener
register
Temp
Link copied to clipboard
@
ApiStatus.Internal
@
NotNull
open
fun
registerTemp
(
@
NotNull
consumer
:
@
NotNull
Consumer
<
in
T
>
)
:
@
NotNull
EventRegistry
<
T
>
Registers temp listener