Package net.minecraft

Class DetectedVersion

java.lang.Object
net.minecraft.DetectedVersion
All Implemented Interfaces:
com.mojang.bridge.game.GameVersion, WorldVersion

public class DetectedVersion extends Object implements WorldVersion
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • BUILT_IN

      public static final WorldVersion BUILT_IN
    • id

      private final String id
    • name

      private final String name
    • stable

      private final boolean stable
    • worldVersion

      private final DataVersion worldVersion
    • protocolVersion

      private final int protocolVersion
    • resourcePackVersion

      private final int resourcePackVersion
    • dataPackVersion

      private final int dataPackVersion
    • buildTime

      private final Date buildTime
    • releaseTarget

      private final String releaseTarget
  • Constructor Details

    • DetectedVersion

      private DetectedVersion()
    • DetectedVersion

      private DetectedVersion(com.google.gson.JsonObject p_132489_)
  • Method Details

    • tryDetectVersion

      public static WorldVersion 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
    • getDataVersion

      public DataVersion getDataVersion()
      Specified by:
      getDataVersion in interface WorldVersion
    • getProtocolVersion

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

      public int getPackVersion(com.mojang.bridge.game.PackType p_179764_)
      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