Package net.minecraft.src
Class SaveFormatOld
java.lang.Object
net.minecraft.src.SaveFormatOld
- All Implemented Interfaces:
ISaveFormat
- Direct Known Subclasses:
AnvilSaveConverter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileReference to the File object representing the directory for the world saves -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanLoadWorld(String par1Str) Return whether the given world can be loaded.booleanconvertMapFormat(String par1Str, IProgressUpdate par2IProgressUpdate) Converts the specified map to the new map format.static booleandeleteFiles(File[] par0ArrayOfFile) Deletes the files and directories in the list passed in recursively.booleandeleteWorldDirectory(String par1Str) Delete the world by deleting the associated directory recursively.voidgetSaveLoader(String par1Str, boolean par2) Returns back a loader for the specified save directorygetSaveLoader2(String var1, boolean var2) getWorldInfo(String par1Str) gets the world infogetWorldInfoCustom(String par1Str, String par2Str) booleanisOldMapFormat(String par1Str) Checks if the save directory uses the old map formatbooleanisWorldGlobal(String worldName) voidrenameWorld(String par1Str, String par2Str) Renames the world by storing the new name in level.dat.
-
Field Details
-
savesDirectory
Reference to the File object representing the directory for the world saves
-
-
Constructor Details
-
SaveFormatOld
-
-
Method Details
-
getSaveList
- Specified by:
getSaveListin interfaceISaveFormat- Throws:
AnvilConverterException
-
flushCache
public void flushCache()- Specified by:
flushCachein interfaceISaveFormat
-
getWorldInfo
gets the world info- Specified by:
getWorldInfoin interfaceISaveFormat
-
renameWorld
Renames the world by storing the new name in level.dat. It does *not* rename the directory containing the world data.- Specified by:
renameWorldin interfaceISaveFormat- Parameters:
par1Str- The directory containing the world.par2Str- The new name for the world.
-
deleteWorldDirectory
Delete the world by deleting the associated directory recursively.- Specified by:
deleteWorldDirectoryin interfaceISaveFormat- Parameters:
par1Str- The name of the directory of the world to delete
-
deleteFiles
Deletes the files and directories in the list passed in recursively.- Parameters:
par0ArrayOfFile- The list of files and directories to delete.
-
getSaveLoader
Returns back a loader for the specified save directory- Specified by:
getSaveLoaderin interfaceISaveFormat
-
isOldMapFormat
Checks if the save directory uses the old map format- Specified by:
isOldMapFormatin interfaceISaveFormat
-
convertMapFormat
Converts the specified map to the new map format. Args: worldName, loadingScreen- Specified by:
convertMapFormatin interfaceISaveFormat
-
canLoadWorld
Return whether the given world can be loaded.- Specified by:
canLoadWorldin interfaceISaveFormat
-
getSaveLoader2
- Specified by:
getSaveLoader2in interfaceISaveFormat
-
isWorldGlobal
- Specified by:
isWorldGlobalin interfaceISaveFormat
-
getWorldInfoCustom
-