net.minecraft.world.storage

## Interface ISaveHandler

- All Known Implementing Classes:
    AnvilSaveHandler, SaveHandler, SaveHandlerMP, WorldSpecificSaveHandler

      public interface ISaveHandler

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `checkSessionLock()` Checks the session lock to prevent save collisions
    `void` | `flush()` Called to flush all changes to disk, waiting for them to complete.
    `IChunkLoader` | `getChunkLoader(WorldProvider worldprovider)` Returns the chunk loader with the provided world provider
    `File` | `getMapFileFromName(String s)` Gets the file location of the given map
    `String` | `getSaveDirectoryName()` Returns the name of the directory where world information is saved.
    `IPlayerFileData` | `getSaveHandler()` returns null if no saveHandler is relevent (eg.
    `WorldInfo` | `loadWorldInfo()` Loads and returns the world info
    `void` | `saveWorldInfo(WorldInfo worldinfo)` Saves the passed in world info.
    `void` | `saveWorldInfoWithPlayer(WorldInfo worldinfo, NBTTagCompound nbttagcompound)` Saves the given World Info with the given NBTTagCompound as the Player.

- - ### Method Detail

    - #### loadWorldInfo

          WorldInfo loadWorldInfo()

      Loads and returns the world info

    - #### checkSessionLock

          void checkSessionLock()
                                throws MinecraftException

      Checks the session lock to prevent save collisions
      Throws:
        `MinecraftException`

    - #### getChunkLoader

          IChunkLoader getChunkLoader(WorldProvider worldprovider)

      Returns the chunk loader with the provided world provider

    - #### saveWorldInfoWithPlayer

          void saveWorldInfoWithPlayer(WorldInfo worldinfo,
                                     NBTTagCompound nbttagcompound)

      Saves the given World Info with the given NBTTagCompound as the Player.

    - #### saveWorldInfo

          void saveWorldInfo(WorldInfo worldinfo)

      Saves the passed in world info.

    - #### getSaveHandler

          IPlayerFileData getSaveHandler()

      returns null if no saveHandler is relevent (eg. SMP)

    - #### flush

          void flush()

      Called to flush all changes to disk, waiting for them to complete.

    - #### getMapFileFromName

          File getMapFileFromName(String s)

      Gets the file location of the given map

    - #### getSaveDirectoryName

          String getSaveDirectoryName()

      Returns the name of the directory where world information is saved.