public class SaveFormat
extends java.lang.Object
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) |
boolean |
deleteWorldDirectory(java.lang.String saveName) |
protected static WorldInfo |
func_215779_a(java.nio.file.Path p_215779_0_,
com.mojang.datafixers.DataFixer p_215779_1_,
java.lang.String p_215779_2_) |
static WorldInfo |
func_215780_a(java.io.File p_215780_0_,
com.mojang.datafixers.DataFixer p_215780_1_) |
java.nio.file.Path |
func_215781_c() |
protected static SaveHandler |
func_215783_a(java.nio.file.Path p_215783_0_,
com.mojang.datafixers.DataFixer p_215783_1_,
java.lang.String p_215783_2_,
MinecraftServer p_215783_3_) |
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() |
SaveHandler |
getSaveLoader(java.lang.String saveName,
MinecraftServer server) |
static WorldInfo |
getWorldData(java.io.File p_215780_0_,
com.mojang.datafixers.DataFixer p_215780_1_,
SaveHandler saveHandler) |
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) |
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
public SaveHandler getSaveLoader(java.lang.String saveName, @Nullable MinecraftServer server)
protected static SaveHandler func_215783_a(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 func_215779_a(java.nio.file.Path p_215779_0_, com.mojang.datafixers.DataFixer p_215779_1_, java.lang.String p_215779_2_)
@Nullable public static WorldInfo func_215780_a(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)
public boolean canLoadWorld(java.lang.String saveName)
public java.nio.file.Path func_215781_c()
public java.io.File getFile(java.lang.String saveName, java.lang.String filePath)
public java.nio.file.Path getBackupsFolder()
public long createBackup(java.lang.String worldName) throws java.io.IOException
java.io.IOException