public class WorldSpecificSaveHandler extends java.lang.Object implements ISaveHandler
| Constructor and Description |
|---|
WorldSpecificSaveHandler(WorldServer world,
ISaveHandler parent) |
| 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 var1)
initializes and returns the chunk loader for the specified world provider
|
java.io.File |
getMapFileFromName(java.lang.String name)
Gets the file location of the given map
|
IPlayerFileData |
getPlayerNBTManager() |
java.io.File |
getWorldDirectory()
Gets the File object corresponding to the base directory of this world.
|
java.lang.String |
getWorldDirectoryName()
Returns the name of the directory where world information is saved.
|
WorldInfo |
loadWorldInfo()
Loads and returns the world info
|
void |
saveWorldInfo(WorldInfo var1)
used to update level.dat from old format to MCRegion format
|
void |
saveWorldInfoWithPlayer(WorldInfo var1,
NBTTagCompound var2)
Saves the given World Info with the given NBTTagCompound as the Player.
|
public WorldSpecificSaveHandler(WorldServer world, ISaveHandler parent)
public WorldInfo loadWorldInfo()
ISaveHandlerloadWorldInfo in interface ISaveHandlerpublic void checkSessionLock()
throws MinecraftException
ISaveHandlercheckSessionLock in interface ISaveHandlerMinecraftExceptionpublic IChunkLoader getChunkLoader(WorldProvider var1)
ISaveHandlergetChunkLoader in interface ISaveHandlerpublic void saveWorldInfoWithPlayer(WorldInfo var1, NBTTagCompound var2)
ISaveHandlersaveWorldInfoWithPlayer in interface ISaveHandlerpublic void saveWorldInfo(WorldInfo var1)
ISaveHandlersaveWorldInfo in interface ISaveHandlerpublic IPlayerFileData getPlayerNBTManager()
getPlayerNBTManager in interface ISaveHandlerpublic void flush()
ISaveHandlerflush in interface ISaveHandlerpublic java.lang.String getWorldDirectoryName()
ISaveHandlergetWorldDirectoryName in interface ISaveHandlerpublic java.io.File getWorldDirectory()
ISaveHandlergetWorldDirectory in interface ISaveHandlerpublic java.io.File getMapFileFromName(java.lang.String name)
getMapFileFromName in interface ISaveHandler