public class SaveFormat
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.time.format.DateTimeFormatter |
BACKUP_DATE_FORMAT |
private java.nio.file.Path |
backupsDir |
private com.mojang.datafixers.DataFixer |
dataFixer |
private static org.apache.logging.log4j.Logger |
field_215785_a |
private java.nio.file.Path |
savesDir |
Constructor and Description |
---|
SaveFormat(java.nio.file.Path p_i51277_1_,
java.nio.file.Path p_i51277_2_,
com.mojang.datafixers.DataFixer p_i51277_3_) |
Modifier and Type | Method and Description |
---|---|
boolean |
canLoadWorld(java.lang.String saveName) |
boolean |
convertMapFormat(java.lang.String filename,
IProgressUpdate progressCallback) |
long |
createBackup(java.lang.String worldName) |
private static boolean |
deleteRecursive(java.io.File[] p_215784_0_) |
boolean |
deleteWorldDirectory(java.lang.String saveName) |
private int |
func_215782_e() |
java.nio.file.Path |
getBackupsFolder() |
java.io.File |
getFile(java.lang.String saveName,
java.lang.String filePath) |
java.lang.String |
getName() |
java.util.List<WorldSummary> |
getSaveList() |
protected static SaveHandler |
getSaveLoader(java.nio.file.Path p_215783_0_,
com.mojang.datafixers.DataFixer p_215783_1_,
java.lang.String p_215783_2_,
MinecraftServer p_215783_3_) |
SaveHandler |
getSaveLoader(java.lang.String saveName,
MinecraftServer server) |
java.nio.file.Path |
getSavesDir() |
static WorldInfo |
getWorldData(java.io.File p_215780_0_,
com.mojang.datafixers.DataFixer p_215780_1_,
SaveHandler saveHandler) |
private java.nio.file.Path |
getWorldFolder(java.lang.String saveName) |
static WorldInfo |
getWorldInfo(java.io.File p_215780_0_,
com.mojang.datafixers.DataFixer p_215780_1_) |
protected static WorldInfo |
getWorldInfo(java.nio.file.Path p_215779_0_,
com.mojang.datafixers.DataFixer p_215779_1_,
java.lang.String p_215779_2_) |
WorldInfo |
getWorldInfo(java.lang.String saveName) |
boolean |
isNewLevelIdAcceptable(java.lang.String saveName) |
boolean |
isOldMapFormat(java.lang.String saveName) |
void |
renameWorld(java.lang.String dirName,
java.lang.String newName) |
private static final org.apache.logging.log4j.Logger field_215785_a
private static final java.time.format.DateTimeFormatter BACKUP_DATE_FORMAT
private final java.nio.file.Path savesDir
private final java.nio.file.Path backupsDir
private final com.mojang.datafixers.DataFixer dataFixer
public SaveFormat(java.nio.file.Path p_i51277_1_, java.nio.file.Path p_i51277_2_, com.mojang.datafixers.DataFixer p_i51277_3_)
public java.lang.String getName()
public java.util.List<WorldSummary> getSaveList() throws AnvilConverterException
AnvilConverterException
private int func_215782_e()
public SaveHandler getSaveLoader(java.lang.String saveName, @Nullable MinecraftServer server)
protected static SaveHandler getSaveLoader(java.nio.file.Path p_215783_0_, com.mojang.datafixers.DataFixer p_215783_1_, java.lang.String p_215783_2_, @Nullable MinecraftServer p_215783_3_)
public boolean isOldMapFormat(java.lang.String saveName)
public boolean convertMapFormat(java.lang.String filename, IProgressUpdate progressCallback)
@Nullable public WorldInfo getWorldInfo(java.lang.String saveName)
@Nullable protected static WorldInfo getWorldInfo(java.nio.file.Path p_215779_0_, com.mojang.datafixers.DataFixer p_215779_1_, java.lang.String p_215779_2_)
@Nullable public static WorldInfo getWorldInfo(java.io.File p_215780_0_, com.mojang.datafixers.DataFixer p_215780_1_)
@Nullable public static WorldInfo getWorldData(java.io.File p_215780_0_, com.mojang.datafixers.DataFixer p_215780_1_, @Nullable SaveHandler saveHandler)
public void renameWorld(java.lang.String dirName, java.lang.String newName)
public boolean isNewLevelIdAcceptable(java.lang.String saveName)
public boolean deleteWorldDirectory(java.lang.String saveName)
private static boolean deleteRecursive(java.io.File[] p_215784_0_)
public boolean canLoadWorld(java.lang.String saveName)
public java.nio.file.Path getSavesDir()
public java.io.File getFile(java.lang.String saveName, java.lang.String filePath)
private java.nio.file.Path getWorldFolder(java.lang.String saveName)
public java.nio.file.Path getBackupsFolder()
public long createBackup(java.lang.String worldName) throws java.io.IOException
java.io.IOException