Class OwnedSubscriberImpl<O,E>
java.lang.Object
org.geysermc.event.subscribe.impl.SubscriberImpl<E>
org.geysermc.event.subscribe.impl.OwnedSubscriberImpl<O,E>
- All Implemented Interfaces:
OwnedSubscriber<O,,E> Subscriber<E>
public abstract class OwnedSubscriberImpl<O,E>
extends SubscriberImpl<E>
implements OwnedSubscriber<O,E>
-
Field Summary
FieldsFields inherited from class org.geysermc.event.subscribe.impl.SubscriberImpl
eventClass, handler, ignoreCancelled, postOrder -
Constructor Summary
ConstructorsConstructorDescriptionOwnedSubscriberImpl(@NonNull O owner, @NonNull Class<E> eventClass, @NonNull Consumer<E> handler, @NonNull PostOrder postOrder) OwnedSubscriberImpl(@NonNull O owner, @NonNull Class<E> eventClass, @NonNull PostOrder postOrder, boolean ignoreCancelled, @NonNull H handlerInstance, @NonNull BiConsumer<H, E> handler) -
Method Summary
Methods inherited from class org.geysermc.event.subscribe.impl.SubscriberImpl
eventClass, ignoreCancelled, invoke, orderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.event.subscribe.Subscriber
eventClass, ignoreCancelled, invoke, order
-
Field Details
-
owner
-
-
Constructor Details
-
OwnedSubscriberImpl
-
OwnedSubscriberImpl
-
-
Method Details
-
owner
Description copied from interface:OwnedSubscriberGets the instance that owns this event subscription.- Specified by:
ownerin interfaceOwnedSubscriber<O,E> - Returns:
- the instance that owns this subscription
-