public class SaveFormatOld extends java.lang.Object implements ISaveFormat
Modifier and Type | Field and Description |
---|---|
java.io.File |
savesDirectory
Reference to the File object representing the directory for the world saves
|
Constructor and Description |
---|
SaveFormatOld(java.io.File p_i2147_1_) |
Modifier and Type | Method and Description |
---|---|
boolean |
canLoadWorld(java.lang.String p_90033_1_)
Return whether the given world can be loaded.
|
boolean |
convertMapFormat(java.lang.String filename,
IProgressUpdate progressCallback)
converts the map to mcRegion
|
protected static boolean |
deleteFiles(java.io.File[] files) |
boolean |
deleteWorldDirectory(java.lang.String p_75802_1_) |
void |
flushCache() |
boolean |
func_154334_a(java.lang.String saveName) |
boolean |
func_154335_d(java.lang.String p_154335_1_) |
java.lang.String |
getName()
Returns the name of the save format.
|
java.util.List<SaveFormatComparator> |
getSaveList() |
ISaveHandler |
getSaveLoader(java.lang.String saveName,
boolean storePlayerdata)
Returns back a loader for the specified save directory
|
WorldInfo |
getWorldInfo(java.lang.String saveName)
Returns the world's WorldInfo object
|
boolean |
isOldMapFormat(java.lang.String saveName)
gets if the map is old chunk saving (true) or McRegion (false)
|
void |
renameWorld(java.lang.String dirName,
java.lang.String newName)
Renames the world by storing the new name in level.dat.
|
public final java.io.File savesDirectory
public java.lang.String getName()
getName
in interface ISaveFormat
public java.util.List<SaveFormatComparator> 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
public void renameWorld(java.lang.String dirName, java.lang.String newName)
renameWorld
in interface ISaveFormat
public boolean func_154335_d(java.lang.String p_154335_1_)
func_154335_d
in interface ISaveFormat
public boolean deleteWorldDirectory(java.lang.String p_75802_1_)
deleteWorldDirectory
in interface ISaveFormat
protected static boolean deleteFiles(java.io.File[] files)
public ISaveHandler getSaveLoader(java.lang.String saveName, boolean storePlayerdata)
getSaveLoader
in interface ISaveFormat
public boolean func_154334_a(java.lang.String saveName)
func_154334_a
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 p_90033_1_)
canLoadWorld
in interface ISaveFormat