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
Fields Modifier and Type Field Description protected Oowner-
Fields inherited from class org.geysermc.event.subscribe.impl.SubscriberImpl
eventClass, handler, ignoreCancelled, postOrder
-
-
Constructor Summary
Constructors Constructor Description OwnedSubscriberImpl(@NonNull O owner, @NonNull java.lang.Class<E> eventClass, @NonNull java.util.function.Consumer<E> handler, @NonNull PostOrder postOrder)OwnedSubscriberImpl(@NonNull O owner, @NonNull java.lang.Class<E> eventClass, @NonNull PostOrder postOrder, boolean ignoreCancelled, @NonNull H handlerInstance, @NonNull java.util.function.BiConsumer<H,E> handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull Oowner()Gets the instance that owns this event subscription.-
Methods inherited from class org.geysermc.event.subscribe.impl.SubscriberImpl
eventClass, ignoreCancelled, invoke, order
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.geysermc.event.subscribe.Subscriber
eventClass, ignoreCancelled, invoke, order
-
-
-
-
Field Detail
-
owner
protected final O owner
-
-
Method Detail
-
owner
public @NonNull O 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
-
-