public class SaveHandler extends java.lang.Object implements ISaveHandler, IPlayerFileData
Constructor and Description |
---|
SaveHandler(java.io.File p_i2146_1_,
java.lang.String p_i2146_2_,
boolean p_i2146_3_) |
Modifier and Type | Method and Description |
---|---|
void |
checkSessionLock() |
void |
flush() |
java.lang.String[] |
getAvailablePlayerDat() |
IChunkLoader |
getChunkLoader(WorldProvider p_75763_1_) |
java.io.File |
getMapFileFromName(java.lang.String p_75758_1_) |
NBTTagCompound |
getPlayerNBT(EntityPlayerMP player) |
IPlayerFileData |
getSaveHandler() |
java.io.File |
getWorldDirectory() |
java.lang.String |
getWorldDirectoryName() |
WorldInfo |
loadWorldInfo() |
NBTTagCompound |
readPlayerData(EntityPlayer p_75752_1_) |
void |
saveWorldInfo(WorldInfo p_75761_1_) |
void |
saveWorldInfoWithPlayer(WorldInfo p_75755_1_,
NBTTagCompound p_75755_2_) |
void |
writePlayerData(EntityPlayer p_75753_1_) |
public SaveHandler(java.io.File p_i2146_1_, java.lang.String p_i2146_2_, boolean p_i2146_3_)
public java.io.File getWorldDirectory()
getWorldDirectory
in interface ISaveHandler
public void checkSessionLock() throws MinecraftException
checkSessionLock
in interface ISaveHandler
MinecraftException
public IChunkLoader getChunkLoader(WorldProvider p_75763_1_)
getChunkLoader
in interface ISaveHandler
public WorldInfo loadWorldInfo()
loadWorldInfo
in interface ISaveHandler
public void saveWorldInfoWithPlayer(WorldInfo p_75755_1_, NBTTagCompound p_75755_2_)
saveWorldInfoWithPlayer
in interface ISaveHandler
public void saveWorldInfo(WorldInfo p_75761_1_)
saveWorldInfo
in interface ISaveHandler
public void writePlayerData(EntityPlayer p_75753_1_)
writePlayerData
in interface IPlayerFileData
public NBTTagCompound readPlayerData(EntityPlayer p_75752_1_)
readPlayerData
in interface IPlayerFileData
public IPlayerFileData getSaveHandler()
getSaveHandler
in interface ISaveHandler
public java.lang.String[] getAvailablePlayerDat()
getAvailablePlayerDat
in interface IPlayerFileData
public void flush()
flush
in interface ISaveHandler
public java.io.File getMapFileFromName(java.lang.String p_75758_1_)
getMapFileFromName
in interface ISaveHandler
public java.lang.String getWorldDirectoryName()
getWorldDirectoryName
in interface ISaveHandler
public NBTTagCompound getPlayerNBT(EntityPlayerMP player)