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
ConstructorDescriptionMethodEventHandler(EventManager manager, Object handlerClass, Method method)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Execute a handler for an eventint
Return our priorityboolean
Methods inherited from class org.geysermc.geyser.event.handlers.EventHandler
compare, compareTo, getEventClass, getManager, unregister
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
-
MethodEventHandler
-
-
Method Details
-
execute
Description copied from class:EventHandler
Execute a handler for an event- Specified by:
execute
in 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:EventHandler
Return our priority- Specified by:
getPriority
in classEventHandler<T extends GeyserEvent>
- Returns:
- the priority
-
isIgnoreCancelled
public boolean isIgnoreCancelled()
-