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 diw
intermediary net/minecraft/class_6595
named net/minecraft/SaveVersion
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getId()
Returns the integer data version of this save version.Returns the series of this version.boolean
Returns if this save version has the new -64 to 319 world height limit.boolean
hasSameSeries
(SaveVersion other) boolean
isAvailableTo
(SaveVersion other) Returns whether this save version can be loaded by theother
version.boolean
-
Field Details
-
MAIN_SERIES
The default series of a version,main
, if a series is not specified.- Mappings:
Namespace Name Mixin selector official a
Ldiw;a:Ljava/lang/String;
intermediary field_34768
Lnet/minecraft/class_6595;field_34768: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
Ldiw;b:I
intermediary field_34769
Lnet/minecraft/class_6595;field_34769:I
named id
Lnet/minecraft/SaveVersion;id:I
-
series
- Mappings:
Namespace Name Mixin selector official c
Ldiw;c:Ljava/lang/String;
intermediary field_34770
Lnet/minecraft/class_6595;field_34770: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>
Ldiw;<init>(I)V
intermediary <init>
Lnet/minecraft/class_6595;<init>(I)V
named <init>
Lnet/minecraft/SaveVersion;<init>(I)V
-
SaveVersion
- Mappings:
Namespace Name Mixin selector official <init>
Ldiw;<init>(ILjava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_6595;<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
Ldiw;a()Z
intermediary method_38490
Lnet/minecraft/class_6595;method_38490()Z
named isNotMainSeries
Lnet/minecraft/SaveVersion;isNotMainSeries()Z
-
getSeries
Returns the series of this version.This is stored in the
Series
field withinlevel.dat
.Known values include
main
for the main series andccpreview
for the caves and cliffs experimental snapshots.- Returns:
- the series of this version
- Mappings:
Namespace Name Mixin selector official b
Ldiw;b()Ljava/lang/String;
intermediary method_38492
Lnet/minecraft/class_6595;method_38492()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
Ldiw;c()I
intermediary method_38494
Lnet/minecraft/class_6595;method_38494()I
named getId
Lnet/minecraft/SaveVersion;getId()I
-
hasSameSeries
- Mappings:
Namespace Name Mixin selector official a
Ldiw;a(Ldiw;)Z
intermediary method_38491
Lnet/minecraft/class_6595;method_38491(Lnet/minecraft/class_6595;)Z
named hasSameSeries
Lnet/minecraft/SaveVersion;hasSameSeries(Lnet/minecraft/SaveVersion;)Z
-
isAvailableTo
Returns whether this save version can be loaded by theother
version.- Returns:
- whether this save version can be loaded by the
other
version - Mappings:
Namespace Name Mixin selector official b
Ldiw;b(Ldiw;)Z
intermediary method_38493
Lnet/minecraft/class_6595;method_38493(Lnet/minecraft/class_6595;)Z
named isAvailableTo
Lnet/minecraft/SaveVersion;isAvailableTo(Lnet/minecraft/SaveVersion;)Z
-
hasIncompatibleWorldHeight
public boolean hasIncompatibleWorldHeight()Returns if this save version has the new -64 to 319 world height limit.This corresponds to world versions
2693
to2706
, or game versions 21w06a to 21w14a.- Returns:
- if this save version has the new -64 to 319 world height limit
- Mappings:
Namespace Name Mixin selector official d
Ldiw;d()Z
intermediary method_38495
Lnet/minecraft/class_6595;method_38495()Z
named hasIncompatibleWorldHeight
Lnet/minecraft/SaveVersion;hasIncompatibleWorldHeight()Z
-