Package org.geysermc.event.subscribe
Interface Subscriber<T>
- Type Parameters:
T- the class of the event
- All Known Subinterfaces:
OwnedSubscriber<O,T>
- All Known Implementing Classes:
OwnedSubscriberImpl,SubscriberImpl
public interface Subscriber<T>
Represents a subscribed listener to an event. Wraps around
the event and is capable of unsubscribing from the event or give
information about it.
-
Method Details
-
eventClass
Returns the event class. -
order
@NonNull PostOrder order()Returns the post order of this event subscription. -
ignoreCancelled
boolean ignoreCancelled()Returns if this subscription ignores cancelled events. -
invoke
Invokes a given event.- Parameters:
event- the event to invoke- Throws:
Throwable
-