Package mindustry.core
Class Version
java.lang.Object
mindustry.core.Version
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
Build number, e.g.static String
Date that this version was built.static String
Git commit hash (short)static boolean
Whether version loading is enabled.static String
Build modifier, e.g.static int
Number specifying the major version, e.g.static int
Revision number.static String
Build 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
-