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 Details

    • owner

      protected final O owner
  • Constructor Details

    • OwnedSubscriberImpl

      public OwnedSubscriberImpl(@NonNull O owner, @NonNull Class<E> eventClass, @NonNull Consumer<E> handler, @NonNull PostOrder postOrder)
    • OwnedSubscriberImpl

      public OwnedSubscriberImpl(@NonNull O owner, @NonNull Class<E> eventClass, @NonNull PostOrder postOrder, boolean ignoreCancelled, @NonNull H handlerInstance, @NonNull BiConsumer<H,E> handler)
  • Method Details

    • owner

      public @NonNull O owner()
      Description copied from interface: OwnedSubscriber
      Gets the instance that owns this event subscription.
      Specified by:
      owner in interface OwnedSubscriber<O,E>
      Returns:
      the instance that owns this subscription