public class SaveHandlerMP extends java.lang.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 provider)
initializes and returns the chunk loader for the specified world provider
|
java.io.File |
getMapFileFromName(java.lang.String mapName)
Gets the file location of the given map
|
IPlayerFileData |
getPlayerNBTManager() |
TemplateManager |
getStructureTemplateManager() |
java.io.File |
getWorldDirectory()
Gets the File object corresponding to the base directory of this world.
|
WorldInfo |
loadWorldInfo()
Loads and returns the world info
|
void |
saveWorldInfo(WorldInfo worldInformation)
used to update level.dat from old format to MCRegion format
|
void |
saveWorldInfoWithPlayer(WorldInfo worldInformation,
NBTTagCompound tagCompound)
Saves the given World Info with the given NBTTagCompound as the Player.
|
public WorldInfo loadWorldInfo()
loadWorldInfo
in interface ISaveHandler
public void checkSessionLock() throws MinecraftException
checkSessionLock
in interface ISaveHandler
MinecraftException
public IChunkLoader getChunkLoader(WorldProvider provider)
getChunkLoader
in interface ISaveHandler
public void saveWorldInfoWithPlayer(WorldInfo worldInformation, NBTTagCompound tagCompound)
saveWorldInfoWithPlayer
in interface ISaveHandler
public void saveWorldInfo(WorldInfo worldInformation)
saveWorldInfo
in interface ISaveHandler
public IPlayerFileData getPlayerNBTManager()
getPlayerNBTManager
in interface ISaveHandler
public void flush()
flush
in interface ISaveHandler
public java.io.File getMapFileFromName(java.lang.String mapName)
getMapFileFromName
in interface ISaveHandler
public java.io.File getWorldDirectory()
getWorldDirectory
in interface ISaveHandler
public TemplateManager getStructureTemplateManager()
getStructureTemplateManager
in interface ISaveHandler