Class SaveFormatOld

java.lang.Object
net.minecraft.src.SaveFormatOld
All Implemented Interfaces:
ISaveFormat
Direct Known Subclasses:
AnvilSaveConverter

public class SaveFormatOld extends Object implements ISaveFormat
  • Field Details

    • savesDirectory

      protected File savesDirectory
      Reference to the File object representing the directory for the world saves
  • Constructor Details

    • SaveFormatOld

      public SaveFormatOld(File par1File)
  • Method Details

    • getSaveList

      public List getSaveList() throws AnvilConverterException
      Specified by:
      getSaveList in interface ISaveFormat
      Throws:
      AnvilConverterException
    • flushCache

      public void flushCache()
      Specified by:
      flushCache in interface ISaveFormat
    • getWorldInfo

      public WorldInfo getWorldInfo(String par1Str)
      gets the world info
      Specified by:
      getWorldInfo in interface ISaveFormat
    • renameWorld

      public void renameWorld(String par1Str, String par2Str)
      Renames the world by storing the new name in level.dat. It does *not* rename the directory containing the world data.
      Specified by:
      renameWorld in interface ISaveFormat
      Parameters:
      par1Str - The directory containing the world.
      par2Str - The new name for the world.
    • deleteWorldDirectory

      public boolean deleteWorldDirectory(String par1Str)
      Delete the world by deleting the associated directory recursively.
      Specified by:
      deleteWorldDirectory in interface ISaveFormat
      Parameters:
      par1Str - The name of the directory of the world to delete
    • deleteFiles

      public static boolean deleteFiles(File[] par0ArrayOfFile)
      Deletes the files and directories in the list passed in recursively.
      Parameters:
      par0ArrayOfFile - The list of files and directories to delete.
    • getSaveLoader

      public ISaveHandler getSaveLoader(String par1Str, boolean par2)
      Returns back a loader for the specified save directory
      Specified by:
      getSaveLoader in interface ISaveFormat
    • isOldMapFormat

      public boolean isOldMapFormat(String par1Str)
      Checks if the save directory uses the old map format
      Specified by:
      isOldMapFormat in interface ISaveFormat
    • convertMapFormat

      public boolean convertMapFormat(String par1Str, IProgressUpdate par2IProgressUpdate)
      Converts the specified map to the new map format. Args: worldName, loadingScreen
      Specified by:
      convertMapFormat in interface ISaveFormat
    • canLoadWorld

      public boolean canLoadWorld(String par1Str)
      Return whether the given world can be loaded.
      Specified by:
      canLoadWorld in interface ISaveFormat
    • getSaveLoader2

      public ISaveHandler getSaveLoader2(String var1, boolean var2)
      Specified by:
      getSaveLoader2 in interface ISaveFormat
    • isWorldGlobal

      public boolean isWorldGlobal(String worldName)
      Specified by:
      isWorldGlobal in interface ISaveFormat
    • getWorldInfoCustom

      public WorldInfo getWorldInfoCustom(String par1Str, String par2Str)