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 Type
    Method
    Description
    @NotNull Class<T>
    Gets the class of the event being listened to.
    boolean
    Checks if the subscription is currently active.
    void
    Unregisters the event handler.
  • Method Details

    • getEventClass

      @NotNull @NotNull Class<T> 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