Package mindustry.core
Class Version
java.lang.Object
mindustry.core.Version
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intBuild number, e.g.static StringDate that this version was built.static StringGit commit hash (short)static booleanWhether version loading is enabled.static StringBuild modifier, e.g.static intNumber specifying the major version, e.g.static intRevision number.static StringBuild type. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
Build type. 'official' for official releases; 'custom' or 'bleeding edge' are also used. -
modifier
Build modifier, e.g. 'alpha' or 'release' -
commitHash
Git commit hash (short) -
buildDate
Date that this version was built. -
number
public static int numberNumber specifying the major version, e.g. '4' -
build
public static int buildBuild number, e.g. '43'. set to '-1' for custom builds. -
revision
public static int revisionRevision number. Used for hotfixes. Does not affect server compatibility. -
enabled
public static boolean enabledWhether version loading is enabled.
-
-
Constructor Details
-
Version
public Version()
-
-
Method Details
-
init
public static void init() -
isAtLeast
- Returns:
- whether the current game version is greater than the specified version string, e.g. "120.1"
-
isAtLeast
- Returns:
- whether the version numbers are greater than the specified version string, e.g. "120.1"
-
buildString
-
combined
get menu version without colors
-