001package net.minecraft.world.storage;
002
003import cpw.mods.fml.relauncher.Side;
004import cpw.mods.fml.relauncher.SideOnly;
005import java.io.File;
006import net.minecraft.nbt.NBTTagCompound;
007import net.minecraft.world.MinecraftException;
008import net.minecraft.world.WorldProvider;
009import net.minecraft.world.chunk.storage.IChunkLoader;
010
011@SideOnly(Side.CLIENT)
012public class SaveHandlerMP implements ISaveHandler
013{
014    /**
015     * Loads and returns the world info
016     */
017    public WorldInfo loadWorldInfo()
018    {
019        return null;
020    }
021
022    /**
023     * Checks the session lock to prevent save collisions
024     */
025    public void checkSessionLock() throws MinecraftException {}
026
027    /**
028     * Returns the chunk loader with the provided world provider
029     */
030    public IChunkLoader getChunkLoader(WorldProvider par1WorldProvider)
031    {
032        return null;
033    }
034
035    /**
036     * Saves the given World Info with the given NBTTagCompound as the Player.
037     */
038    public void saveWorldInfoWithPlayer(WorldInfo par1WorldInfo, NBTTagCompound par2NBTTagCompound) {}
039
040    /**
041     * Saves the passed in world info.
042     */
043    public void saveWorldInfo(WorldInfo par1WorldInfo) {}
044
045    /**
046     * returns null if no saveHandler is relevent (eg. SMP)
047     */
048    public IPlayerFileData getSaveHandler()
049    {
050        return null;
051    }
052
053    /**
054     * Called to flush all changes to disk, waiting for them to complete.
055     */
056    public void flush() {}
057
058    /**
059     * Gets the file location of the given map
060     */
061    public File getMapFileFromName(String par1Str)
062    {
063        return null;
064    }
065
066    /**
067     * Returns the name of the directory where world information is saved.
068     */
069    public String getWorldDirectoryName()
070    {
071        return "none";
072    }
073}