annotation, instance, owner| Constructor and Description |
|---|
ConsumerHandler(java.lang.Class<?> owner,
java.lang.Object instance,
EventHandler annotation,
java.util.function.Consumer consumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
call(java.lang.Object event)
Call the event handler with the given event instance.
|
java.util.function.Consumer<java.lang.Object> |
getConsumer() |
java.lang.String |
toString() |
getAnnotation, getInstance, getOwner, isStaticpublic ConsumerHandler(java.lang.Class<?> owner,
@Nullable
java.lang.Object instance,
EventHandler annotation,
java.util.function.Consumer consumer)
owner - The owner of the handler methodinstance - The instance of the handler ownerannotation - The EventHandler annotation of the handler methodconsumer - The handler consumer@Nonnull public java.util.function.Consumer<java.lang.Object> getConsumer()
public void call(java.lang.Object event)
AHandler