Package net.minecraft
Class SaveVersion
java.lang.Object
net.minecraft.SaveVersion
The version components of Minecraft that is used for identification in
save games.
- Mappings:
Namespace Name official dhtintermediary net/minecraft/class_6477named net/minecraft/SaveVersion
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetId()Returns the integer data version of this save version.Returns the series of this version.booleanThis method always returnsfalse, but its usage appears to indicate that it returns if this save version has the old 0 to 255 world height limit.booleanhasSameSeries(SaveVersion other) booleanisAvailableTo(SaveVersion other) Returns whether this save version can be loaded by theotherversion.boolean
-
Field Details
-
MAIN_SERIES
The default series of a version, , if a series is not specified.- Mappings:
Namespace Name Mixin selector official aLdht;a:Ljava/lang/String;intermediary field_34268Lnet/minecraft/class_6477;field_34268:Ljava/lang/String;named MAIN_SERIESLnet/minecraft/SaveVersion;MAIN_SERIES:Ljava/lang/String;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official bLdht;b:Iintermediary field_34269Lnet/minecraft/class_6477;field_34269:Inamed idLnet/minecraft/SaveVersion;id:I
-
series
- Mappings:
Namespace Name Mixin selector official cLdht;c:Ljava/lang/String;intermediary field_34270Lnet/minecraft/class_6477;field_34270:Ljava/lang/String;named seriesLnet/minecraft/SaveVersion;series:Ljava/lang/String;
-
-
Constructor Details
-
SaveVersion
public SaveVersion(int id) - Mappings:
Namespace Name Mixin selector official <init>Ldht;<init>(I)Vintermediary <init>Lnet/minecraft/class_6477;<init>(I)Vnamed <init>Lnet/minecraft/SaveVersion;<init>(I)V
-
SaveVersion
- Mappings:
Namespace Name Mixin selector official <init>Ldht;<init>(ILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_6477;<init>(ILjava/lang/String;)Vnamed <init>Lnet/minecraft/SaveVersion;<init>(ILjava/lang/String;)V
-
-
Method Details
-
isNotMainSeries
public boolean isNotMainSeries()- Mappings:
Namespace Name Mixin selector official aLdht;a()Zintermediary method_37785Lnet/minecraft/class_6477;method_37785()Znamed isNotMainSeriesLnet/minecraft/SaveVersion;isNotMainSeries()Z
-
getSeries
Returns the series of this version.This is stored in the
Seriesfield withinlevel.dat.- Returns:
- the series of this version
- Mappings:
Namespace Name Mixin selector official bLdht;b()Ljava/lang/String;intermediary method_37787Lnet/minecraft/class_6477;method_37787()Ljava/lang/String;named getSeriesLnet/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 cLdht;c()Iintermediary method_37789Lnet/minecraft/class_6477;method_37789()Inamed getIdLnet/minecraft/SaveVersion;getId()I
-
hasSameSeries
- Mappings:
Namespace Name Mixin selector official aLdht;a(Ldht;)Zintermediary method_37786Lnet/minecraft/class_6477;method_37786(Lnet/minecraft/class_6477;)Znamed hasSameSeriesLnet/minecraft/SaveVersion;hasSameSeries(Lnet/minecraft/SaveVersion;)Z
-
isAvailableTo
Returns whether this save version can be loaded by theotherversion.- Returns:
- whether this save version can be loaded by the
otherversion - Mappings:
Namespace Name Mixin selector official bLdht;b(Ldht;)Zintermediary method_37788Lnet/minecraft/class_6477;method_37788(Lnet/minecraft/class_6477;)Znamed isAvailableToLnet/minecraft/SaveVersion;isAvailableTo(Lnet/minecraft/SaveVersion;)Z
-
hasOldWorldHeight
public boolean hasOldWorldHeight()This method always returnsfalse, 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 dLdht;d()Zintermediary method_37790Lnet/minecraft/class_6477;method_37790()Znamed hasOldWorldHeightLnet/minecraft/SaveVersion;hasOldWorldHeight()Z
-