Class ExtensionLambdaEventHandler<T extends GeyserEvent>
java.lang.Object
org.geysermc.geyser.event.handlers.EventHandler<T>
org.geysermc.geyser.event.handlers.LambdaEventHandler<T>
org.geysermc.geyser.extension.handlers.ExtensionLambdaEventHandler<T>
- All Implemented Interfaces:
Comparable<EventHandler<T>>
,Comparator<EventHandler<T>>
Provides a lambda event handler for a extension.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.geysermc.geyser.event.handlers.EventHandler
EventHandler.EventHandlerException, EventHandler.Priority
-
Constructor Summary
ConstructorDescriptionExtensionLambdaEventHandler(GeyserExtension extension, Class<T> cls, BiConsumer<T,EventHandler<T>> consumer)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Unregister ourselfMethods inherited from class org.geysermc.geyser.event.handlers.LambdaEventHandler
execute, getConsumer, getPriority, ignoreCancelled, isIgnoreCancelled, priority
Methods inherited from class org.geysermc.geyser.event.handlers.EventHandler
compare, compareTo, getEventClass, getManager
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ExtensionLambdaEventHandler
public ExtensionLambdaEventHandler(GeyserExtension extension, Class<T> cls, BiConsumer<T,EventHandler<T>> consumer)
-
-
Method Details
-
unregister
public void unregister()Description copied from class:EventHandler
Unregister ourself- Overrides:
unregister
in classEventHandler<T extends GeyserEvent>
-
getExtension
-