Package dev.inputbooster.api
Class InputBoosterAPIProvider
java.lang.Object
dev.inputbooster.api.InputBoosterAPIProvider
Internal singleton holder for the InputBoosterAPI implementation.
InputBooster's main mod class calls
register(InputBoosterAPI)
during onInitializeClient(). Dependent mods never call this directly.-
Method Summary
Modifier and TypeMethodDescriptionstatic InputBoosterAPIget()Returns the registered API instance.static booleanSafe check — never throws.static voidregister(InputBoosterAPI impl) Called exclusively by InputBooster's own init code.static voidInternal: called by InputBooster during shutdown.
-
Method Details
-
register
Called exclusively by InputBooster's own init code. Dependent mods should never call this. -
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.
-