Class SubscriberImpl<E>
java.lang.Object
org.geysermc.event.subscribe.impl.SubscriberImpl<E>
- All Implemented Interfaces:
Subscriber<E>
- Direct Known Subclasses:
OwnedSubscriberImpl
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubscriberImpl(@NonNull Class<E> eventClass, @NonNull Consumer<E> handler, @NonNull PostOrder postOrder) SubscriberImpl(Class<E> eventClass, PostOrder postOrder, boolean ignoreCancelled, H handlerInstance, BiConsumer<H, E> handler) -
Method Summary
-
Field Details
-
eventClass
-
postOrder
-
ignoreCancelled
protected final boolean ignoreCancelled -
handler
-
-
Constructor Details
-
SubscriberImpl
-
SubscriberImpl
public SubscriberImpl(Class<E> eventClass, PostOrder postOrder, boolean ignoreCancelled, H handlerInstance, BiConsumer<H, E> handler)
-
-
Method Details
-
eventClass
Description copied from interface:SubscriberReturns the event class.- Specified by:
eventClassin interfaceSubscriber<E>
-
order
Description copied from interface:SubscriberReturns the post order of this event subscription.- Specified by:
orderin interfaceSubscriber<E>
-
ignoreCancelled
public boolean ignoreCancelled()Description copied from interface:SubscriberReturns if this subscription ignores cancelled events.- Specified by:
ignoreCancelledin interfaceSubscriber<E>
-
invoke
Description copied from interface:SubscriberInvokes a given event.- Specified by:
invokein interfaceSubscriber<E>- Parameters:
event- the event to invoke- Throws:
Throwable
-