Package us.talabrek.ultimateskyblock.api
Class UltimateSkyblockProvider
java.lang.Object
us.talabrek.ultimateskyblock.api.UltimateSkyblockProvider
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Internal method - Deregisters the uSkyBlock plugin instance with the API provider.static @NotNull UltimateSkyblock
Gets the API instance ofUltimateSkyblock
, will throwIllegalStateException
when the API isn't loaded yet.static void
registerPlugin
(UltimateSkyblock instance) Internal method - Registers the uSkyBlock plugin instance with the API provider.
-
Method Details
-
getInstance
Gets the API instance ofUltimateSkyblock
, will throwIllegalStateException
when the API isn't loaded yet. Convenience method, using Bukkit'sServicesManager
is the preferred way to get an API instance.- Returns:
- UltimateSkyblock API instance.
- Throws:
IllegalStateException
- when the API isn't loaded yet.
-
registerPlugin
Internal method - Registers the uSkyBlock plugin instance with the API provider.- Parameters:
instance
- uSkyBlock plugin instance
-
deregisterPlugin
@Internal public static void deregisterPlugin()Internal method - Deregisters the uSkyBlock plugin instance with the API provider.
-