Class MethodEventHandler
java.lang.Object
com.sk89q.worldedit.util.eventbus.EventHandler
com.sk89q.worldedit.util.eventbus.MethodEventHandler
- All Implemented Interfaces:
Comparable<EventHandler>
Invokes a
Method
to dispatch an event.-
Nested Class Summary
Nested classes/interfaces inherited from class com.sk89q.worldedit.util.eventbus.EventHandler
EventHandler.Priority
-
Constructor Summary
ConstructorDescriptionMethodEventHandler
(EventHandler.Priority priority, Object object, Method method) Create a new event handler. -
Method Summary
Methods inherited from class com.sk89q.worldedit.util.eventbus.EventHandler
compareTo, getPriority, handleEvent, toString
-
Constructor Details
-
MethodEventHandler
Create a new event handler.- Parameters:
priority
- the prioritymethod
- the method
-
-
Method Details
-
getMethod
Get the method.- Returns:
- the method
-
dispatch
Description copied from class:EventHandler
Dispatch the event.- Specified by:
dispatch
in classEventHandler
- Parameters:
event
- the event object- Throws:
Exception
- an exception that may be thrown
-
equals
- Specified by:
equals
in classEventHandler
-
hashCode
public int hashCode()- Specified by:
hashCode
in classEventHandler
-