-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass user preferred update channel to UpdateChecker
- Loading branch information
Showing
3 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
src/main/java/com/terraformersmc/modmenu/api/UpdateChannel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
src/main/java/com/terraformersmc/modmenu/api/UpdateChecker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
package com.terraformersmc.modmenu.api; | ||
|
||
public interface UpdateChecker { | ||
|
||
/** | ||
* Gets called when ModMenu is checking for updates. | ||
* This is done in a separate thread, so this call can/should be blocking. | ||
* | ||
* Your update checker should aim to return an update on the same or a more stable channel than requested. | ||
* | ||
* @param updateChannel The end user's preferred update channel. | ||
* @return The update info | ||
*/ | ||
UpdateInfo checkForUpdates(); | ||
|
||
UpdateInfo checkForUpdates(UpdateChannel updateChannel); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters