Package net.minecraft

Class MinecraftVersion

java.lang.Object
net.minecraft.MinecraftVersion
All Implemented Interfaces:
GameVersion

public class MinecraftVersion extends Object implements GameVersion
Mappings:
Namespace Name
official t
intermediary net/minecraft/class_3797
named net/minecraft/MinecraftVersion
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lt;b:Lorg/slf4j/Logger;
      intermediary field_16741 Lnet/minecraft/class_3797;field_16741:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/MinecraftVersion;LOGGER:Lorg/slf4j/Logger;
    • CURRENT

      public static final GameVersion CURRENT
      Mappings:
      Namespace Name Mixin selector
      official a Lt;a:Lad;
      intermediary field_25319 Lnet/minecraft/class_3797;field_25319:Lnet/minecraft/class_6489;
      named CURRENT Lnet/minecraft/MinecraftVersion;CURRENT:Lnet/minecraft/GameVersion;
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      official c Lt;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 Lt;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 Lt;e:Z
      intermediary field_16737 Lnet/minecraft/class_3797;field_16737:Z
      named stable Lnet/minecraft/MinecraftVersion;stable:Z
    • saveVersion

      private final SaveVersion saveVersion
      Mappings:
      Namespace Name Mixin selector
      official f Lt;f:Ldyk;
      intermediary field_16736 Lnet/minecraft/class_3797;field_16736:Lnet/minecraft/class_6595;
      named saveVersion Lnet/minecraft/MinecraftVersion;saveVersion:Lnet/minecraft/SaveVersion;
    • protocolVersion

      private final int protocolVersion
      Mappings:
      Namespace Name Mixin selector
      official g Lt;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 Lt;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 Lt;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 Lt;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;
  • Constructor Details

    • MinecraftVersion

      private MinecraftVersion()
    • MinecraftVersion

      private MinecraftVersion(JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lt;<init>(Lcom/google/gson/JsonObject;)V
      intermediary <init> Lnet/minecraft/class_3797;<init>(Lcom/google/gson/JsonObject;)V
      named <init> Lnet/minecraft/MinecraftVersion;<init>(Lcom/google/gson/JsonObject;)V
  • Method Details

    • create

      public static GameVersion create()
      Mappings:
      Namespace Name Mixin selector
      official a Lt;a()Lad;
      intermediary method_16672 Lnet/minecraft/class_3797;method_16672()Lnet/minecraft/class_6489;
      named create Lnet/minecraft/MinecraftVersion;create()Lnet/minecraft/GameVersion;
    • getId

      public String getId()
      Specified by:
      getId in interface GameVersion
      Mappings:
      Namespace Name Mixin selector
      official b Lad;b()Ljava/lang/String;
      intermediary method_48018 Lnet/minecraft/class_6489;method_48018()Ljava/lang/String;
      named getId Lnet/minecraft/GameVersion;getId()Ljava/lang/String;
    • getName

      public String getName()
      Specified by:
      getName in interface GameVersion
      Mappings:
      Namespace Name Mixin selector
      official c Lad;c()Ljava/lang/String;
      intermediary method_48019 Lnet/minecraft/class_6489;method_48019()Ljava/lang/String;
      named getName Lnet/minecraft/GameVersion;getName()Ljava/lang/String;
    • getSaveVersion

      public SaveVersion getSaveVersion()
      Returns the save version information for this game version.
      Specified by:
      getSaveVersion in interface GameVersion
      Returns:
      the save version information for this game version
      Mappings:
      Namespace Name Mixin selector
      official d Lad;d()Ldyk;
      intermediary method_37912 Lnet/minecraft/class_6489;method_37912()Lnet/minecraft/class_6595;
      named getSaveVersion Lnet/minecraft/GameVersion;getSaveVersion()Lnet/minecraft/SaveVersion;
    • getProtocolVersion

      public int getProtocolVersion()
      Specified by:
      getProtocolVersion in interface GameVersion
      Mappings:
      Namespace Name Mixin selector
      official e Lad;e()I
      intermediary method_48020 Lnet/minecraft/class_6489;method_48020()I
      named getProtocolVersion Lnet/minecraft/GameVersion;getProtocolVersion()I
    • getResourceVersion

      public int getResourceVersion(ResourceType type)
      Specified by:
      getResourceVersion in interface GameVersion
      Mappings:
      Namespace Name Mixin selector
      official a Lad;a(Lajk;)I
      intermediary method_48017 Lnet/minecraft/class_6489;method_48017(Lnet/minecraft/class_3264;)I
      named getResourceVersion Lnet/minecraft/GameVersion;getResourceVersion(Lnet/minecraft/resource/ResourceType;)I
    • getBuildTime

      public Date getBuildTime()
      Specified by:
      getBuildTime in interface GameVersion
      Mappings:
      Namespace Name Mixin selector
      official f Lad;f()Ljava/util/Date;
      intermediary method_48021 Lnet/minecraft/class_6489;method_48021()Ljava/util/Date;
      named getBuildTime Lnet/minecraft/GameVersion;getBuildTime()Ljava/util/Date;
    • isStable

      public boolean isStable()
      Specified by:
      isStable in interface GameVersion
      Mappings:
      Namespace Name Mixin selector
      official g Lad;g()Z
      intermediary method_48022 Lnet/minecraft/class_6489;method_48022()Z
      named isStable Lnet/minecraft/GameVersion;isStable()Z