@InternalOnly public abstract class AbstractEventHandler<T extends AbstractEventData> extends java.lang.Object implements EventHandler<T>
| Constructor and Description |
|---|
AbstractEventHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
handleEvent(EventFireTime<T> fireTime,
T data)
Handles the triggered event
|
abstract void |
handleEvent(T data)
Simplifies the callback by handling the return value automatically.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHandlerName@Nullable public java.lang.Object handleEvent(@NotNull EventFireTime<T> fireTime, @NotNull T data)
EventHandlerhandleEvent in interface EventHandler<T extends AbstractEventData>fireTime - The object representing the fire time of the eventdata - The data associated with the eventdata.getLastReturnValue()public abstract void handleEvent(@NotNull T data)
data - The event datapublic java.lang.String toString()
toString in class java.lang.Object