public class CurseVersionChecker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_API_URL |
Constructor and Description |
---|
CurseVersionChecker(java.lang.String curseId,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDownloadUrl()
Gets the direct url to the latest file
|
java.lang.String |
getProjectUrl()
Gets the curseforge project url
|
java.lang.String |
getUpdateFileName()
Gets the file name of the latest file
|
boolean |
isUpdateAvailable()
This checks if an update is available
|
public static final java.lang.String BASE_API_URL
public CurseVersionChecker(java.lang.String curseId, java.lang.String name)
curseId
- The project slug/id used in curseforge urlsname
- The name of the file of the currently running version of the modpublic boolean isUpdateAvailable()
public java.lang.String getDownloadUrl()
public java.lang.String getUpdateFileName()
public java.lang.String getProjectUrl()