Class InputBoosterAPIProvider

java.lang.Object
dev.inputbooster.api.InputBoosterAPIProvider

public final class InputBoosterAPIProvider extends Object
Internal singleton holder for the InputBoosterAPI implementation. InputBooster's main mod class calls register(InputBoosterAPI) during onInitializeClient(). Dependent mods never call this directly.
  • Method Details

    • register

      public static void register(InputBoosterAPI impl)
      Called exclusively by InputBooster's own init code. Dependent mods should never call this.
    • get

      public static InputBoosterAPI get()
      Returns the registered API instance.
      Throws:
      IllegalStateException - if InputBooster has not been initialized yet
    • isAvailable

      public static boolean isAvailable()
      Safe check — never throws.
    • unregister

      public static void unregister()
      Internal: called by InputBooster during shutdown.