public class AnvilSaveConverter extends SaveFormatOld
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
dataFixer, savesDirectory
Constructor and Description |
---|
AnvilSaveConverter(java.io.File dir,
DataFixer dataFixerIn) |
Modifier and Type | Method and Description |
---|---|
private void |
addRegionFilesToCollection(java.io.File worldDir,
java.util.Collection<java.io.File> collection) |
private void |
convertChunks(java.io.File baseFolder,
java.io.File p_75811_2_,
BiomeProvider biomeSource,
int p_75811_4_,
int p_75811_5_,
IProgressUpdate progressCallback) |
private void |
convertFile(java.io.File baseFolder,
java.lang.Iterable<java.io.File> regionFiles,
BiomeProvider p_75813_3_,
int p_75813_4_,
int p_75813_5_,
IProgressUpdate progress) |
boolean |
convertMapFormat(java.lang.String filename,
IProgressUpdate progressCallback) |
private void |
createFile(java.lang.String filename) |
void |
flushCache() |
java.lang.String |
getName() |
java.util.List<WorldSummary> |
getSaveList() |
ISaveHandler |
getSaveLoader(java.lang.String saveName,
boolean storePlayerdata) |
protected int |
getSaveVersion() |
boolean |
isConvertible(java.lang.String saveName) |
boolean |
isOldMapFormat(java.lang.String saveName) |
canLoadWorld, deleteFiles, deleteWorldDirectory, getFile, getWorldData, getWorldInfo, isNewLevelIdAcceptable, loadAndFix, renameWorld
public AnvilSaveConverter(java.io.File dir, DataFixer dataFixerIn)
public java.lang.String getName()
getName
in interface ISaveFormat
getName
in class SaveFormatOld
public java.util.List<WorldSummary> getSaveList() throws AnvilConverterException
getSaveList
in interface ISaveFormat
getSaveList
in class SaveFormatOld
AnvilConverterException
protected int getSaveVersion()
public void flushCache()
flushCache
in interface ISaveFormat
flushCache
in class SaveFormatOld
public ISaveHandler getSaveLoader(java.lang.String saveName, boolean storePlayerdata)
getSaveLoader
in interface ISaveFormat
getSaveLoader
in class SaveFormatOld
public boolean isConvertible(java.lang.String saveName)
isConvertible
in interface ISaveFormat
isConvertible
in class SaveFormatOld
public boolean isOldMapFormat(java.lang.String saveName)
isOldMapFormat
in interface ISaveFormat
isOldMapFormat
in class SaveFormatOld
public boolean convertMapFormat(java.lang.String filename, IProgressUpdate progressCallback)
convertMapFormat
in interface ISaveFormat
convertMapFormat
in class SaveFormatOld
private void createFile(java.lang.String filename)
private void convertFile(java.io.File baseFolder, java.lang.Iterable<java.io.File> regionFiles, BiomeProvider p_75813_3_, int p_75813_4_, int p_75813_5_, IProgressUpdate progress)
private void convertChunks(java.io.File baseFolder, java.io.File p_75811_2_, BiomeProvider biomeSource, int p_75811_4_, int p_75811_5_, IProgressUpdate progressCallback)
private void addRegionFilesToCollection(java.io.File worldDir, java.util.Collection<java.io.File> collection)