public class AnvilSaveHandler extends SaveHandler
Constructor and Description |
---|
AnvilSaveHandler(java.io.File savesDirectory,
java.lang.String p_i2142_2_,
boolean storePlayerdata) |
Modifier and Type | Method and Description |
---|---|
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
|
void |
saveWorldInfoWithPlayer(WorldInfo worldInformation,
NBTTagCompound tagCompound)
Saves the given World Info with the given NBTTagCompound as the Player.
|
checkSessionLock, getAvailablePlayerDat, getMapFileFromName, getPlayerNBT, getPlayerNBTManager, getWorldDirectory, getWorldDirectoryName, loadWorldInfo, readPlayerData, saveWorldInfo, writePlayerData
public AnvilSaveHandler(java.io.File savesDirectory, java.lang.String p_i2142_2_, boolean storePlayerdata)
public IChunkLoader getChunkLoader(WorldProvider provider)
getChunkLoader
in interface ISaveHandler
getChunkLoader
in class SaveHandler
public void saveWorldInfoWithPlayer(WorldInfo worldInformation, NBTTagCompound tagCompound)
saveWorldInfoWithPlayer
in interface ISaveHandler
saveWorldInfoWithPlayer
in class SaveHandler
public void flush()
flush
in interface ISaveHandler
flush
in class SaveHandler