Enum Class VersionChecker.Status
- All Implemented Interfaces:
Serializable, Comparable<VersionChecker.Status>, Constable
- Enclosing class:
VersionChecker
The status of a version check result.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe current version is ahead/more up to date of the recommended and latest versions.The current version is a beta version.The current version is an out of date beta version.An error occurred during version checking for this mod.The current version is out of date (and not a beta version) with either the recommended or latest versions.The current version is up to date with the recommended version. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether to draw an update indicator.static VersionChecker.StatusReturns the enum constant of this class with the specified name.static VersionChecker.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAILED
An error occurred during version checking for this mod. -
UP_TO_DATE
The current version is up to date with the recommended version. -
OUTDATED
The current version is out of date (and not a beta version) with either the recommended or latest versions. -
AHEAD
The current version is ahead/more up to date of the recommended and latest versions. -
BETA
The current version is a beta version. This means that there is no recommended version, and either there is also no latest version, or the current version is up to date with the latest version. -
BETA_OUTDATED
The current version is an out of date beta version. This means there is no recommend version, and the current version is out of date with the latest version.
-
-
Field Details
-
draw
final boolean draw
-
-
Constructor Details
-
Status
private Status(boolean draw) -
Status
private Status()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
shouldDraw
public boolean shouldDraw()Returns whether to draw an update indicator. This is used by the 'Mods' button and the mod list screen.- Returns:
- whether to draw an update indicator
-