Packages com.phoenixplugins.sdk.api plugin eventbus

Interface EventBus


public interface EventBus
Interface for an EventBus system that supports both Spigot events and custom events.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    subscribe(Class<T> eventClass, Consumer<T> handler)
    Subscribes a handler to a specific event type.
    <T> void
    trigger(T event)
    Triggers an event, notifying all subscribed handlers.
  • Method Details

    • subscribe

      <T> void subscribe(Class<T> eventClass, Consumer<T> handler)
      Subscribes a handler to a specific event type.
      Type Parameters:
      T - The type of event.
      Parameters:
      eventClass - The class of the event to subscribe to.
      handler - The handler function that will process the event.
    • trigger

      <T> void trigger(T event)
      Triggers an event, notifying all subscribed handlers.
      Parameters:
      event - The event instance to trigger.
Last updated 10 days ago
My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping