Class Version

java.lang.Object
mindustry.core.Version

public class Version extends Object
  • Field Details

    • type

      public static String type
      Build type. 'official' for official releases; 'custom' or 'bleeding edge' are also used.
    • modifier

      public static String modifier
      Build modifier, e.g. 'alpha' or 'release'
    • number

      public static int number
      Number specifying the major version, e.g. '4'
    • build

      public static int build
      Build number, e.g. '43'. set to '-1' for custom builds.
    • revision

      public static int revision
      Revision number. Used for hotfixes. Does not affect server compatibility.
    • enabled

      public static boolean enabled
      Whether version loading is enabled.
  • Constructor Details

    • Version

      public Version()
  • Method Details

    • init

      public static void init()
    • isAtLeast

      public static boolean isAtLeast(String str)
      Returns:
      whether the current game version is greater than the specified version string, e.g. "120.1"
    • isAtLeast

      public static boolean isAtLeast(int build, int revision, String str)
      Returns:
      whether the version numbers are greater than the specified version string, e.g. "120.1"
    • buildString

      public static String buildString()
    • combined

      public static String combined()
      get menu version without colors