Interface TKeyedEvent<T>
public interface TKeyedEvent<T>
Similar to
The event handler insertion order is preserved.
TEvent
, except this one stores its listeners
in a Map
in key-value pairs. This allows listeners to
be "identifiable", so they can easily be added, accessed, and removed.The event handler insertion order is preserved.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
invoker()
boolean
isRegistered
(String key) default boolean
isRegistered
(net.minecraft.util.Identifier key) boolean
default boolean
boolean
unregister
(String key) default boolean
unregister
(net.minecraft.util.Identifier key)
-
Method Details
-
invoker
T invoker() -
register
-
register
-
unregister
default boolean unregister(net.minecraft.util.Identifier key) -
unregister
-
isRegistered
default boolean isRegistered(net.minecraft.util.Identifier key) -
isRegistered
-
clearListeners
void clearListeners()
-