Class UltimateSkyblockProvider

java.lang.Object
us.talabrek.ultimateskyblock.api.UltimateSkyblockProvider

public final class UltimateSkyblockProvider extends Object
  • Method Details

    • getInstance

      @NotNull public static @NotNull UltimateSkyblock getInstance()
      Gets the API instance of UltimateSkyblock, will throw IllegalStateException when the API isn't loaded yet. Convenience method, using Bukkit's ServicesManager is the preferred way to get an API instance.
      Returns:
      UltimateSkyblock API instance.
      Throws:
      IllegalStateException - when the API isn't loaded yet.
    • registerPlugin

      @Internal public static void registerPlugin(UltimateSkyblock instance)
      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.