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, waitcreateBackuppublic 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 ISaveFormatpublic java.util.List<WorldSummary> getSaveList() throws AnvilConverterException
getSaveList in interface ISaveFormatAnvilConverterExceptionpublic 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 ISaveFormatpublic boolean isNewLevelIdAcceptable(java.lang.String saveName)
isNewLevelIdAcceptable in interface ISaveFormatpublic boolean deleteWorldDirectory(java.lang.String saveName)
deleteWorldDirectory in interface ISaveFormatprotected static boolean deleteFiles(java.io.File[] files)
public ISaveHandler getSaveLoader(java.lang.String saveName, @Nullable MinecraftServer server)
getSaveLoader in interface ISaveFormatpublic boolean isConvertible(java.lang.String saveName)
isConvertible in interface ISaveFormatpublic boolean isOldMapFormat(java.lang.String saveName)
isOldMapFormat in interface ISaveFormatpublic boolean convertMapFormat(java.lang.String filename,
IProgressUpdate progressCallback)
convertMapFormat in interface ISaveFormatpublic boolean canLoadWorld(java.lang.String saveName)
canLoadWorld in interface ISaveFormatpublic java.io.File getFile(java.lang.String saveName,
java.lang.String filePath)
getFile in interface ISaveFormatpublic java.nio.file.Path getWorldFolder(java.lang.String saveName)
getWorldFolder in interface ISaveFormatpublic java.nio.file.Path getBackupsFolder()
getBackupsFolder in interface ISaveFormat