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
ConstructorsConstructorDescriptionMethodEventHandler(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:EventHandlerDispatch the event.- Specified by:
dispatchin classEventHandler- Parameters:
event- the event object- Throws:
Exception- an exception that may be thrown
-
equals
- Specified by:
equalsin classEventHandler
-
hashCode
public int hashCode()- Specified by:
hashCodein classEventHandler
-