public class SaveFormatOld extends java.lang.Object implements ISaveFormat
Modifier and Type | Field and Description |
---|---|
protected com.mojang.datafixers.DataFixer |
dataFixer |
protected java.nio.file.Path |
field_197717_b |
java.nio.file.Path |
savesDirectory |
BACKUP_DATE_FORMAT
Constructor and Description |
---|
SaveFormatOld(java.nio.file.Path p_i49565_1_,
java.nio.file.Path p_i49565_2_,
com.mojang.datafixers.DataFixer p_i49565_3_) |
Modifier and Type | Method and Description |
---|---|
boolean |
canLoadWorld(java.lang.String saveName) |
boolean |
convertMapFormat(java.lang.String filename,
IProgressUpdate progressCallback) |
protected static boolean |
deleteFiles(java.io.File[] files) |
boolean |
deleteWorldDirectory(java.lang.String saveName) |
void |
flushCache() |
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() |
ISaveHandler |
getSaveLoader(java.lang.String saveName,
MinecraftServer server) |
static WorldInfo |
getWorldData(java.io.File p_186353_0_,
com.mojang.datafixers.DataFixer dataFixerIn) |
static WorldInfo |
getWorldData(java.io.File p_186353_0_,
com.mojang.datafixers.DataFixer dataFixerIn,
SaveHandler saveHandler) |
java.nio.file.Path |
getWorldFolder(java.lang.String saveName) |
WorldInfo |
getWorldInfo(java.lang.String saveName) |
boolean |
isConvertible(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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createBackup
public final java.nio.file.Path savesDirectory
protected final java.nio.file.Path field_197717_b
protected final com.mojang.datafixers.DataFixer dataFixer
public SaveFormatOld(java.nio.file.Path p_i49565_1_, java.nio.file.Path p_i49565_2_, com.mojang.datafixers.DataFixer p_i49565_3_)
public java.lang.String getName()
getName
in interface ISaveFormat
public java.util.List<WorldSummary> getSaveList() throws AnvilConverterException
getSaveList
in interface ISaveFormat
AnvilConverterException
public void flushCache()
flushCache
in interface ISaveFormat
@Nullable public WorldInfo getWorldInfo(java.lang.String saveName)
getWorldInfo
in interface ISaveFormat
@Nullable public static WorldInfo getWorldData(java.io.File p_186353_0_, com.mojang.datafixers.DataFixer dataFixerIn)
@Nullable public static WorldInfo getWorldData(java.io.File p_186353_0_, com.mojang.datafixers.DataFixer dataFixerIn, @Nullable SaveHandler saveHandler)
public void renameWorld(java.lang.String dirName, java.lang.String newName)
renameWorld
in interface ISaveFormat
public boolean isNewLevelIdAcceptable(java.lang.String saveName)
isNewLevelIdAcceptable
in interface ISaveFormat
public boolean deleteWorldDirectory(java.lang.String saveName)
deleteWorldDirectory
in interface ISaveFormat
protected static boolean deleteFiles(java.io.File[] files)
public ISaveHandler getSaveLoader(java.lang.String saveName, @Nullable MinecraftServer server)
getSaveLoader
in interface ISaveFormat
public boolean isConvertible(java.lang.String saveName)
isConvertible
in interface ISaveFormat
public boolean isOldMapFormat(java.lang.String saveName)
isOldMapFormat
in interface ISaveFormat
public boolean convertMapFormat(java.lang.String filename, IProgressUpdate progressCallback)
convertMapFormat
in interface ISaveFormat
public boolean canLoadWorld(java.lang.String saveName)
canLoadWorld
in interface ISaveFormat
public java.io.File getFile(java.lang.String saveName, java.lang.String filePath)
getFile
in interface ISaveFormat
public java.nio.file.Path getWorldFolder(java.lang.String saveName)
getWorldFolder
in interface ISaveFormat
public java.nio.file.Path getBackupsFolder()
getBackupsFolder
in interface ISaveFormat