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 dqpintermediary net/minecraft/class_6595named 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.booleanisAvailableTo(SaveVersion other) Returns whether this save version can be loaded by theotherversion.boolean
-
Field Details
-
MAIN_SERIES
The default series of a version,main, if a series is not specified.- Mappings:
Namespace Name Mixin selector official aLdqp;a:Ljava/lang/String;intermediary field_34768Lnet/minecraft/class_6595;field_34768:Ljava/lang/String;named MAIN_SERIESLnet/minecraft/SaveVersion;MAIN_SERIES:Ljava/lang/String;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official bLdqp;b:Iintermediary field_34769Lnet/minecraft/class_6595;field_34769:Inamed idLnet/minecraft/SaveVersion;id:I
-
series
- Mappings:
Namespace Name Mixin selector official cLdqp;c:Ljava/lang/String;intermediary field_34770Lnet/minecraft/class_6595;field_34770: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>Ldqp;<init>(I)Vintermediary <init>Lnet/minecraft/class_6595;<init>(I)Vnamed <init>Lnet/minecraft/SaveVersion;<init>(I)V
-
SaveVersion
- Mappings:
Namespace Name Mixin selector official <init>Ldqp;<init>(ILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_6595;<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 aLdqp;a()Zintermediary method_38490Lnet/minecraft/class_6595;method_38490()Znamed isNotMainSeriesLnet/minecraft/SaveVersion;isNotMainSeries()Z
-
getSeries
Returns the series of this version.This is stored in the
Seriesfield withinlevel.dat.Known values include:
mainfor versions that are not experimental snapshotsccpreviewfor the 1.18 Caves and Cliffs experimental snapshotsdeep_dark_previewfor 1.19 Deep Dark experimental snapshots
- Returns:
- the series of this version
- Mappings:
Namespace Name Mixin selector official bLdqp;b()Ljava/lang/String;intermediary method_38492Lnet/minecraft/class_6595;method_38492()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 cLdqp;c()Iintermediary method_38494Lnet/minecraft/class_6595;method_38494()Inamed getIdLnet/minecraft/SaveVersion;getId()I
-
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 aLdqp;a(Ldqp;)Zintermediary method_38493Lnet/minecraft/class_6595;method_38493(Lnet/minecraft/class_6595;)Znamed isAvailableToLnet/minecraft/SaveVersion;isAvailableTo(Lnet/minecraft/SaveVersion;)Z
-