Promotion background
Easter Season IS HERE!
10% off limited time offer!
Ends in
00
H
00
M
00
S
limited time offer SAVE 10% NOW →
Packages com.phoenixplugins.sdk.api plugin eventbus
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 and 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 Detail

      • 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 about 4 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy
This site uses cookies to personalize content, enhance your experience. By continuing, you agree to our cookie use. Learn more