Package org.yuemi.libs.api.event
Interface EventSubscription<T extends org.bukkit.event.Event>
- Type Parameters:
T- the event type
public interface EventSubscription<T extends org.bukkit.event.Event>
Represents an active subscription to a Bukkit event.
-
Method Summary
Modifier and TypeMethodDescriptionGets the class of the event being listened to.booleanisActive()Checks if the subscription is currently active.voidUnregisters the event handler.
-
Method Details
-
getEventClass
Gets the class of the event being listened to.- Returns:
- the event class
-
unsubscribe
void unsubscribe()Unregisters the event handler. -
isActive
boolean isActive()Checks if the subscription is currently active.- Returns:
- true if active, false otherwise
-