Package wtf.choco.veinminer.update
Interface UpdateChecker
- All Known Implementing Classes:
SpigotMCUpdateChecker
public interface UpdateChecker
Represents a simple update checker.
-
Method Summary
Modifier and TypeMethodDescription@NotNull CompletableFuture<UpdateResult>
checkForUpdates
(@NotNull VersionScheme versionScheme) Perform an asynchronous update check.@NotNull Optional<UpdateResult>
Get theresult
of the last update check that was performed.
-
Method Details
-
getLastUpdateResult
Get theresult
of the last update check that was performed.- Returns:
- the last update result, or an empty
Optional
if an update check has not yet been performed
-
checkForUpdates
@NotNull @NotNull CompletableFuture<UpdateResult> checkForUpdates(@NotNull @NotNull VersionScheme versionScheme) Perform an asynchronous update check.- Parameters:
versionScheme
- theVersionScheme
to use- Returns:
- a
CompletableFuture
containing theUpdateResult
-