Class MinecraftVersion

java.lang.Object
net.minecraft.util.MinecraftVersion
All Implemented Interfaces:
com.mojang.bridge.game.GameVersion

public class MinecraftVersion extends Object implements com.mojang.bridge.game.GameVersion
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • BUILT_IN

      public static final com.mojang.bridge.game.GameVersion BUILT_IN
    • id

      private final String id
    • name

      private final String name
    • stable

      private final boolean stable
    • worldVersion

      private final int worldVersion
    • protocolVersion

      private final int protocolVersion
    • packVersion

      private final int packVersion
    • buildTime

      private final Date buildTime
    • releaseTarget

      private final String releaseTarget
  • Constructor Details

    • MinecraftVersion

      private MinecraftVersion()
    • MinecraftVersion

      private MinecraftVersion(com.google.gson.JsonObject p_i51407_1_)
  • Method Details

    • tryDetectVersion

      public static com.mojang.bridge.game.GameVersion tryDetectVersion()
    • getId

      public String getId()
      Specified by:
      getId in interface com.mojang.bridge.game.GameVersion
    • getName

      public String getName()
      Specified by:
      getName in interface com.mojang.bridge.game.GameVersion
    • getReleaseTarget

      public String getReleaseTarget()
      Specified by:
      getReleaseTarget in interface com.mojang.bridge.game.GameVersion
    • getWorldVersion

      public int getWorldVersion()
      Specified by:
      getWorldVersion in interface com.mojang.bridge.game.GameVersion
    • getProtocolVersion

      public int getProtocolVersion()
      Specified by:
      getProtocolVersion in interface com.mojang.bridge.game.GameVersion
    • getPackVersion

      public int getPackVersion()
      Specified by:
      getPackVersion in interface com.mojang.bridge.game.GameVersion
    • getBuildTime

      public Date getBuildTime()
      Specified by:
      getBuildTime in interface com.mojang.bridge.game.GameVersion
    • isStable

      public boolean isStable()
      Specified by:
      isStable in interface com.mojang.bridge.game.GameVersion