Class EventApiProvider

java.lang.Object
org.yuemi.libs.api.event.EventApiProvider

public final class EventApiProvider extends Object
Service provider helper for EventApi.
  • Method Details

    • getApi

      @Nullable public static @Nullable EventApi getApi()
      Gets the active EventApi implementation.
      Returns:
      the active EventApi, or null if not registered
    • register

      @Internal public static void register(@Nullable @Nullable EventApi provider)
      Registers the active EventApi implementation.
      Parameters:
      provider - the active provider