| Constructor and Description |
|---|
ConsumerHandler(java.lang.Class<?> owner,
java.lang.Object instance,
EventHandler annotation,
java.util.function.Consumer<java.lang.Object> 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() |
getAnnotation, getInstance, getOwner, isStaticpublic ConsumerHandler(@Nonnull
java.lang.Class<?> owner,
@Nullable
java.lang.Object instance,
@Nonnull
EventHandler annotation,
@Nonnull
java.util.function.Consumer<java.lang.Object> consumer)
owner - The owner of the handler methodinstance - The instance of the handler ownerannotation - The EventHandler annotation of the handler methodconsumer - The handler consumer