Package net.minecraft

Class MinecraftVersion

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

public class MinecraftVersion
extends Object
implements com.mojang.bridge.game.GameVersion
Mappings:
Namespace Name
official q
intermediary net/minecraft/class_3797
named net/minecraft/MinecraftVersion
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lq;b:Lorg/apache/logging/log4j/Logger;
      intermediary field_16741 Lnet/minecraft/class_3797;field_16741:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/MinecraftVersion;LOGGER:Lorg/apache/logging/log4j/Logger;
    • GAME_VERSION

      public static final com.mojang.bridge.game.GameVersion GAME_VERSION
      Mappings:
      Namespace Name Mixin selector
      official a Lq;a:Lcom/mojang/bridge/game/GameVersion;
      intermediary field_25319 Lnet/minecraft/class_3797;field_25319:Lcom/mojang/bridge/game/GameVersion;
      named GAME_VERSION Lnet/minecraft/MinecraftVersion;GAME_VERSION:Lcom/mojang/bridge/game/GameVersion;
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      official c Lq;c:Ljava/lang/String;
      intermediary field_16738 Lnet/minecraft/class_3797;field_16738:Ljava/lang/String;
      named id Lnet/minecraft/MinecraftVersion;id:Ljava/lang/String;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official d Lq;d:Ljava/lang/String;
      intermediary field_16733 Lnet/minecraft/class_3797;field_16733:Ljava/lang/String;
      named name Lnet/minecraft/MinecraftVersion;name:Ljava/lang/String;
    • stable

      private final boolean stable
      Mappings:
      Namespace Name Mixin selector
      official e Lq;e:Z
      intermediary field_16737 Lnet/minecraft/class_3797;field_16737:Z
      named stable Lnet/minecraft/MinecraftVersion;stable:Z
    • worldVersion

      private final int worldVersion
      Mappings:
      Namespace Name Mixin selector
      official f Lq;f:I
      intermediary field_16736 Lnet/minecraft/class_3797;field_16736:I
      named worldVersion Lnet/minecraft/MinecraftVersion;worldVersion:I
    • protocolVersion

      private final int protocolVersion
      Mappings:
      Namespace Name Mixin selector
      official g Lq;g:I
      intermediary field_16735 Lnet/minecraft/class_3797;field_16735:I
      named protocolVersion Lnet/minecraft/MinecraftVersion;protocolVersion:I
    • resourcePackVersion

      private final int resourcePackVersion
      Mappings:
      Namespace Name Mixin selector
      official h Lq;h:I
      intermediary field_27843 Lnet/minecraft/class_3797;field_27843:I
      named resourcePackVersion Lnet/minecraft/MinecraftVersion;resourcePackVersion:I
    • dataPackVersion

      private final int dataPackVersion
      Mappings:
      Namespace Name Mixin selector
      official i Lq;i:I
      intermediary field_16734 Lnet/minecraft/class_3797;field_16734:I
      named dataPackVersion Lnet/minecraft/MinecraftVersion;dataPackVersion:I
    • buildTime

      private final Date buildTime
      Mappings:
      Namespace Name Mixin selector
      official j Lq;j:Ljava/util/Date;
      intermediary field_16739 Lnet/minecraft/class_3797;field_16739:Ljava/util/Date;
      named buildTime Lnet/minecraft/MinecraftVersion;buildTime:Ljava/util/Date;
    • releaseTarget

      private final String releaseTarget
      Mappings:
      Namespace Name Mixin selector
      official k Lq;k:Ljava/lang/String;
      intermediary field_16740 Lnet/minecraft/class_3797;field_16740:Ljava/lang/String;
      named releaseTarget Lnet/minecraft/MinecraftVersion;releaseTarget:Ljava/lang/String;
  • Constructor Details

    • MinecraftVersion

      private MinecraftVersion()
    • MinecraftVersion

      private MinecraftVersion​(JsonObject jsonObject)
  • Method Details

    • create

      public static com.mojang.bridge.game.GameVersion create()
      Mappings:
      Namespace Name Mixin selector
      official a Lq;a()Lcom/mojang/bridge/game/GameVersion;
      intermediary method_16672 Lnet/minecraft/class_3797;method_16672()Lcom/mojang/bridge/game/GameVersion;
      named create Lnet/minecraft/MinecraftVersion;create()Lcom/mojang/bridge/game/GameVersion;
    • getId

      public String getId()
      Specified by:
      getId in interface com.mojang.bridge.game.GameVersion
      Mappings:
      Namespace Name Mixin selector
      official getId Lq;getId()Ljava/lang/String;
      intermediary getId Lnet/minecraft/class_3797;getId()Ljava/lang/String;
      named getId Lnet/minecraft/MinecraftVersion;getId()Ljava/lang/String;
    • getName

      public String getName()
      Specified by:
      getName in interface com.mojang.bridge.game.GameVersion
      Mappings:
      Namespace Name Mixin selector
      official getName Lq;getName()Ljava/lang/String;
      intermediary getName Lnet/minecraft/class_3797;getName()Ljava/lang/String;
      named getName Lnet/minecraft/MinecraftVersion;getName()Ljava/lang/String;
    • getReleaseTarget

      public String getReleaseTarget()
      Specified by:
      getReleaseTarget in interface com.mojang.bridge.game.GameVersion
      Mappings:
      Namespace Name Mixin selector
      official getReleaseTarget Lq;getReleaseTarget()Ljava/lang/String;
      intermediary getReleaseTarget Lnet/minecraft/class_3797;getReleaseTarget()Ljava/lang/String;
      named getReleaseTarget Lnet/minecraft/MinecraftVersion;getReleaseTarget()Ljava/lang/String;
    • getWorldVersion

      public int getWorldVersion()
      Specified by:
      getWorldVersion in interface com.mojang.bridge.game.GameVersion
      Mappings:
      Namespace Name Mixin selector
      official getWorldVersion Lq;getWorldVersion()I
      intermediary getWorldVersion Lnet/minecraft/class_3797;getWorldVersion()I
      named getWorldVersion Lnet/minecraft/MinecraftVersion;getWorldVersion()I
    • getProtocolVersion

      public int getProtocolVersion()
      Specified by:
      getProtocolVersion in interface com.mojang.bridge.game.GameVersion
      Mappings:
      Namespace Name Mixin selector
      official getProtocolVersion Lq;getProtocolVersion()I
      intermediary getProtocolVersion Lnet/minecraft/class_3797;getProtocolVersion()I
      named getProtocolVersion Lnet/minecraft/MinecraftVersion;getProtocolVersion()I
    • getPackVersion

      public int getPackVersion​(com.mojang.bridge.game.PackType packType)
      Specified by:
      getPackVersion in interface com.mojang.bridge.game.GameVersion
      Mappings:
      Namespace Name Mixin selector
      official getPackVersion Lq;getPackVersion(Lcom/mojang/bridge/game/PackType;)I
      intermediary getPackVersion Lnet/minecraft/class_3797;getPackVersion(Lcom/mojang/bridge/game/PackType;)I
      named getPackVersion Lnet/minecraft/MinecraftVersion;getPackVersion(Lcom/mojang/bridge/game/PackType;)I
    • getBuildTime

      public Date getBuildTime()
      Specified by:
      getBuildTime in interface com.mojang.bridge.game.GameVersion
      Mappings:
      Namespace Name Mixin selector
      official getBuildTime Lq;getBuildTime()Ljava/util/Date;
      intermediary getBuildTime Lnet/minecraft/class_3797;getBuildTime()Ljava/util/Date;
      named getBuildTime Lnet/minecraft/MinecraftVersion;getBuildTime()Ljava/util/Date;
    • isStable

      public boolean isStable()
      Specified by:
      isStable in interface com.mojang.bridge.game.GameVersion
      Mappings:
      Namespace Name Mixin selector
      official isStable Lq;isStable()Z
      intermediary isStable Lnet/minecraft/class_3797;isStable()Z
      named isStable Lnet/minecraft/MinecraftVersion;isStable()Z