|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraftforge.common.WorldSpecificSaveHandler
public class WorldSpecificSaveHandler
Constructor Summary | |
---|---|
WorldSpecificSaveHandler(WorldServer world,
ISaveHandler parent)
|
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 var1)
Returns the chunk loader with the provided world provider |
File |
getMapFileFromName(String name)
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 var1)
Saves the passed in world info. |
void |
saveWorldInfoWithPlayer(WorldInfo var1,
NBTTagCompound var2)
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 WorldSpecificSaveHandler(WorldServer world, ISaveHandler parent)
Method Detail |
---|
public WorldInfo loadWorldInfo()
ISaveHandler
loadWorldInfo
in interface ISaveHandler
public void checkSessionLock() throws MinecraftException
ISaveHandler
checkSessionLock
in interface ISaveHandler
MinecraftException
public IChunkLoader getChunkLoader(WorldProvider var1)
ISaveHandler
getChunkLoader
in interface ISaveHandler
public void saveWorldInfoWithPlayer(WorldInfo var1, NBTTagCompound var2)
ISaveHandler
saveWorldInfoWithPlayer
in interface ISaveHandler
public void saveWorldInfo(WorldInfo var1)
ISaveHandler
saveWorldInfo
in interface ISaveHandler
public IPlayerFileData getSaveHandler()
ISaveHandler
getSaveHandler
in interface ISaveHandler
public void flush()
ISaveHandler
flush
in interface ISaveHandler
public String getSaveDirectoryName()
ISaveHandler
getSaveDirectoryName
in interface ISaveHandler
public File getMapFileFromName(String name)
ISaveHandler
getMapFileFromName
in interface ISaveHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |