|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minecraft.world.storage.SaveHandlerMP
public class SaveHandlerMP
| Constructor Summary | |
|---|---|
SaveHandlerMP()
|
|
| Method Summary | |
|---|---|
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 |
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 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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SaveHandlerMP()
| Method Detail |
|---|
public WorldInfo loadWorldInfo()
loadWorldInfo in interface ISaveHandler
public void checkSessionLock()
throws MinecraftException
checkSessionLock in interface ISaveHandlerMinecraftExceptionpublic IChunkLoader getChunkLoader(WorldProvider par1WorldProvider)
getChunkLoader in interface ISaveHandler
public 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 getSaveDirectoryName()
getSaveDirectoryName in interface ISaveHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||