Class StealABlockProvider
java.lang.Object
dev.yowsef.stealablock.api.StealABlockProvider
Static provider for obtaining the active
StealABlockAPI instance.-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StealABlockAPIget()Returns the activeStealABlockAPIinstance.static Optional<StealABlockAPI> static booleanstatic voidregister(@NotNull StealABlockAPI api) static void
-
Method Details
-
get
Returns the activeStealABlockAPIinstance.- 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
- Returns:
- an
Optionalcontaining the activeStealABlockAPIif loaded
-
register
-
unregister
@Internal public static void unregister()
-