Serializable, Comparable<VersionType>public enum VersionType extends Enum<VersionType>
| Enum Constant | Description |
|---|---|
OLD_ALPHA |
Alpha
|
OLD_BETA |
Beta
|
RELEASE |
Release
|
SNAPSHOT |
Snapshot
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isOld() |
Evaluates whether this particular release type is considered old.
|
boolean |
isStable() |
Evaluates whether this particular release type is considered stable (e.g.
|
static VersionType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static VersionType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VersionType OLD_ALPHA
Alpha
Indicates that a version has been released during the game's alpha, infdev indev or pre-classic phases (ranging from the initial game version up to 1.0.0).
Note that this differs from the typical classification of version numbers and refers mostly to how the game is to be launched rather than identifying its development phase (thus including the full range up until the end of alpha).
public static final VersionType OLD_BETA
Beta
Indicates that a version has been released during the game's beta phase (ranging from beta 1.0 up to 1.9-pre6).
public static final VersionType RELEASE
Release
Indicates that a version has been released after the full release of the game (starting with version 1.0) and is considered stable.
public static final VersionType SNAPSHOT
Snapshot
Indicates that a version is a preview release which does not represent the state of the full release (e.g. it is considered unstable and may change significantly before being released).
public static VersionType[] values()
for (VersionType c : VersionType.values()) System.out.println(c);
public static VersionType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isStable()
Evaluates whether this particular release type is considered stable (e.g. is relatively unlikely to crash and will not change by much with the exception of bugfixes).
Note that this information should be taken with a grain of salt as history shows that bug fix releases often contain new features in addition to their respective bug fixes and may even be incredibly buggy at times.
public boolean isOld()
Evaluates whether this particular release type is considered old.
Note that this value does not actually indicate a certain release age but instead refer to release types which are no longer used (e.g. alpha and beta releases). Typically these releases also go hand in hand with special requirements when attempting to launch them.
Copyright © 2018 Basin. All rights reserved.