public class SaveFormatOld extends java.lang.Object implements ISaveFormat
Modifier and Type | Field and Description |
---|---|
protected DataFixer |
dataFixer |
java.io.File |
savesDirectory |
Constructor and Description |
---|
SaveFormatOld(java.io.File savesDirectoryIn,
DataFixer dataFixerIn) |
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.io.File |
getFile(java.lang.String p_186352_1_,
java.lang.String p_186352_2_) |
java.lang.String |
getName() |
java.util.List<WorldSummary> |
getSaveList() |
ISaveHandler |
getSaveLoader(java.lang.String saveName,
boolean storePlayerdata) |
static WorldInfo |
getWorldData(java.io.File p_186353_0_,
DataFixer dataFixerIn) |
WorldInfo |
getWorldInfo(java.lang.String saveName) |
boolean |
isConvertible(java.lang.String saveName) |
boolean |
isNewLevelIdAcceptable(java.lang.String saveName) |
boolean |
isOldMapFormat(java.lang.String saveName) |
static WorldInfo |
loadAndFix(java.io.File file,
DataFixer fixer,
SaveHandler save) |
void |
renameWorld(java.lang.String dirName,
java.lang.String newName) |
public final java.io.File savesDirectory
protected final DataFixer dataFixer
public SaveFormatOld(java.io.File savesDirectoryIn, DataFixer dataFixerIn)
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
public WorldInfo getWorldInfo(java.lang.String saveName)
getWorldInfo
in interface ISaveFormat
@Nullable public static WorldInfo getWorldData(java.io.File p_186353_0_, DataFixer dataFixerIn)
public static WorldInfo loadAndFix(java.io.File file, DataFixer fixer, SaveHandler save)
public void renameWorld(java.lang.String dirName, java.lang.String newName)
renameWorld
in interface ISaveFormat
public ISaveHandler getSaveLoader(java.lang.String saveName, boolean storePlayerdata)
getSaveLoader
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 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 p_186352_1_, java.lang.String p_186352_2_)
getFile
in interface ISaveFormat