Package net.minecraft

Class SaveVersion

java.lang.Object
net.minecraft.SaveVersion

public class SaveVersion extends Object
The version components of Minecraft that is used for identification in save games.
Mappings:
Namespace Name
official dhz
intermediary net/minecraft/class_6477
named net/minecraft/SaveVersion
  • Field Details

    • MAIN_SERIES

      public static String MAIN_SERIES
      The default series of a version, main, if a series is not specified.
      Mappings:
      Namespace Name Mixin selector
      official a Ldhz;a:Ljava/lang/String;
      intermediary field_34268 Lnet/minecraft/class_6477;field_34268:Ljava/lang/String;
      named MAIN_SERIES Lnet/minecraft/SaveVersion;MAIN_SERIES:Ljava/lang/String;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      official b Ldhz;b:I
      intermediary field_34269 Lnet/minecraft/class_6477;field_34269:I
      named id Lnet/minecraft/SaveVersion;id:I
    • series

      private final String series
      Mappings:
      Namespace Name Mixin selector
      official c Ldhz;c:Ljava/lang/String;
      intermediary field_34270 Lnet/minecraft/class_6477;field_34270:Ljava/lang/String;
      named series Lnet/minecraft/SaveVersion;series:Ljava/lang/String;
  • Constructor Details

    • SaveVersion

      public SaveVersion(int id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldhz;<init>(I)V
      intermediary <init> Lnet/minecraft/class_6477;<init>(I)V
      named <init> Lnet/minecraft/SaveVersion;<init>(I)V
    • SaveVersion

      public SaveVersion(int id, String series)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldhz;<init>(ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_6477;<init>(ILjava/lang/String;)V
      named <init> Lnet/minecraft/SaveVersion;<init>(ILjava/lang/String;)V
  • Method Details

    • isNotMainSeries

      public boolean isNotMainSeries()
      Mappings:
      Namespace Name Mixin selector
      official a Ldhz;a()Z
      intermediary method_37785 Lnet/minecraft/class_6477;method_37785()Z
      named isNotMainSeries Lnet/minecraft/SaveVersion;isNotMainSeries()Z
    • getSeries

      public String getSeries()
      Returns the series of this version.

      This is stored in the Series field within level.dat.

      Known values include main for the main series and ccpreview for the caves and cliffs experimental snapshots.

      Returns:
      the series of this version
      Mappings:
      Namespace Name Mixin selector
      official b Ldhz;b()Ljava/lang/String;
      intermediary method_37787 Lnet/minecraft/class_6477;method_37787()Ljava/lang/String;
      named getSeries Lnet/minecraft/SaveVersion;getSeries()Ljava/lang/String;
    • getId

      public int getId()
      Returns the integer data version of this save version.
      Returns:
      the integer data version of this save version
      Mappings:
      Namespace Name Mixin selector
      official c Ldhz;c()I
      intermediary method_37789 Lnet/minecraft/class_6477;method_37789()I
      named getId Lnet/minecraft/SaveVersion;getId()I
    • hasSameSeries

      public boolean hasSameSeries(SaveVersion other)
      Mappings:
      Namespace Name Mixin selector
      official a Ldhz;a(Ldhz;)Z
      intermediary method_37786 Lnet/minecraft/class_6477;method_37786(Lnet/minecraft/class_6477;)Z
      named hasSameSeries Lnet/minecraft/SaveVersion;hasSameSeries(Lnet/minecraft/SaveVersion;)Z
    • isAvailableTo

      public boolean isAvailableTo(SaveVersion other)
      Returns whether this save version can be loaded by the other version.
      Returns:
      whether this save version can be loaded by the other version
      Mappings:
      Namespace Name Mixin selector
      official b Ldhz;b(Ldhz;)Z
      intermediary method_37788 Lnet/minecraft/class_6477;method_37788(Lnet/minecraft/class_6477;)Z
      named isAvailableTo Lnet/minecraft/SaveVersion;isAvailableTo(Lnet/minecraft/SaveVersion;)Z
    • hasOldWorldHeight

      public boolean hasOldWorldHeight()
      This method always returns false, but its usage appears to indicate that it returns if this save version has the old 0 to 255 world height limit.
      Mappings:
      Namespace Name Mixin selector
      official d Ldhz;d()Z
      intermediary method_37790 Lnet/minecraft/class_6477;method_37790()Z
      named hasOldWorldHeight Lnet/minecraft/SaveVersion;hasOldWorldHeight()Z