public class SaveHandlerMP extends Object implements ISaveHandler
| Constructor and Description |
|---|
SaveHandlerMP() |
| 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 par1WorldProvider)
Returns the chunk loader with the provided world provider
|
File |
getMapFileFromName(String par1Str)
Gets the file location of the given map
|
IPlayerFileData |
getSaveHandler()
returns null if no saveHandler is relevent (eg.
|
String |
getWorldDirectoryName()
Returns the name of the directory where world information is saved.
|
WorldInfo |
loadWorldInfo()
Loads and returns the world info
|
void |
saveWorldInfo(WorldInfo par1WorldInfo)
Saves the passed in world info.
|
void |
saveWorldInfoWithPlayer(WorldInfo par1WorldInfo,
NBTTagCompound par2NBTTagCompound)
Saves the given World Info with the given NBTTagCompound as the Player.
|
public WorldInfo loadWorldInfo()
loadWorldInfo in interface ISaveHandlerpublic void checkSessionLock()
throws MinecraftException
checkSessionLock in interface ISaveHandlerMinecraftExceptionpublic IChunkLoader getChunkLoader(WorldProvider par1WorldProvider)
getChunkLoader in interface ISaveHandlerpublic void saveWorldInfoWithPlayer(WorldInfo par1WorldInfo, NBTTagCompound par2NBTTagCompound)
saveWorldInfoWithPlayer in interface ISaveHandlerpublic void saveWorldInfo(WorldInfo par1WorldInfo)
saveWorldInfo in interface ISaveHandlerpublic IPlayerFileData getSaveHandler()
getSaveHandler in interface ISaveHandlerpublic void flush()
flush in interface ISaveHandlerpublic File getMapFileFromName(String par1Str)
getMapFileFromName in interface ISaveHandlerpublic String getWorldDirectoryName()
getWorldDirectoryName in interface ISaveHandler