Class StealABlockProvider

java.lang.Object
dev.yowsef.stealablock.api.StealABlockProvider

public final class StealABlockProvider extends Object
Static provider for obtaining the active StealABlockAPI instance.
  • Method Details

    • get

      @NotNull public static @NotNull StealABlockAPI get()
      Returns the active StealABlockAPI instance.
      Throws:
      IllegalStateException - if StealABlock is not enabled or failed license verification
    • isAvailable

      public static boolean isAvailable()
      Returns:
      true if StealABlock API is initialized and ready for use
    • getIfAvailable

      @NotNull public static Optional<StealABlockAPI> getIfAvailable()
      Returns:
      an Optional containing the active StealABlockAPI if loaded
    • register

      @Internal public static void register(@NotNull @NotNull StealABlockAPI api)
    • unregister

      @Internal public static void unregister()