public class SaveVersionInfo extends Object
Modifier and Type | Field and Description |
---|---|
private long |
lastPlayed |
private int |
levelFormatVersion |
private boolean |
stable |
private int |
versionId |
private String |
versionName |
Constructor and Description |
---|
SaveVersionInfo(int levelFormatVersion,
long lastPlayed,
String versionName,
int versionId,
boolean stable) |
Modifier and Type | Method and Description |
---|---|
static SaveVersionInfo |
fromDynamic(com.mojang.serialization.Dynamic<?> dynamic) |
long |
getLastPlayed() |
int |
getLevelFormatVersion() |
int |
getVersionId() |
String |
getVersionName() |
boolean |
isStable() |
private final int levelFormatVersion
private final long lastPlayed
private final String versionName
private final int versionId
private final boolean stable
public SaveVersionInfo(int levelFormatVersion, long lastPlayed, String versionName, int versionId, boolean stable)
public static SaveVersionInfo fromDynamic(com.mojang.serialization.Dynamic<?> dynamic)
public int getLevelFormatVersion()
public long getLastPlayed()
@Environment(value=CLIENT) public String getVersionName()
@Environment(value=CLIENT) public int getVersionId()
@Environment(value=CLIENT) public boolean isStable()