EventRegistry

Event registry of BetterHud

Parameters

<T>

event type

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Unit
Unit class

Properties

Link copied to clipboard
Unit instance

Functions

Link copied to clipboard
@ApiStatus.Internal
open fun call(@NotNull t: @NotNull T)
Calls event.
Link copied to clipboard
@ApiStatus.Internal
open fun clear()
Clears all temp listener.
Link copied to clipboard
@ApiStatus.Internal
open fun clearAll()
Clears all temp listeners from all registries.
Link copied to clipboard
@NotNull
open fun register(@NotNull consumer: @NotNull Consumer<in T>): @NotNull EventRegistry<T>
Registers listener
Link copied to clipboard
@ApiStatus.Internal
@NotNull
open fun registerTemp(@NotNull consumer: @NotNull Consumer<in T>): @NotNull EventRegistry<T>
Registers temp listener