Class MethodEventHandler<T extends GeyserEvent>
java.lang.Object
org.geysermc.geyser.event.handlers.EventHandler<T>
org.geysermc.geyser.event.handlers.MethodEventHandler<T>
- All Implemented Interfaces:
Comparable<EventHandler<T>>,Comparator<EventHandler<T>>
- Direct Known Subclasses:
ExtensionMethodEventHandler
Provides an event handler for an annotated method
-
Nested Class Summary
Nested classes/interfaces inherited from class org.geysermc.geyser.event.handlers.EventHandler
EventHandler.EventHandlerException, EventHandler.Priority -
Constructor Summary
ConstructorsConstructorDescriptionMethodEventHandler(EventManager manager, Object handlerClass, Method method) -
Method Summary
Modifier and TypeMethodDescriptionvoidExecute a handler for an eventintReturn our prioritybooleanMethods inherited from class org.geysermc.geyser.event.handlers.EventHandler
compare, compareTo, getEventClass, getManager, unregisterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
MethodEventHandler
-
-
Method Details
-
execute
Description copied from class:EventHandlerExecute a handler for an event- Specified by:
executein classEventHandler<T extends GeyserEvent>- Parameters:
event- Event passed to handler- Throws:
EventHandler.EventHandlerException- thrown for errors
-
getHandlerClass
-
getMethod
-
getPriority
public int getPriority()Description copied from class:EventHandlerReturn our priority- Specified by:
getPriorityin classEventHandler<T extends GeyserEvent>- Returns:
- the priority
-
isIgnoreCancelled
public boolean isIgnoreCancelled()
-