public class WorldSpecificSaveHandler extends java.lang.Object implements ISaveHandler
Modifier and Type | Field and Description |
---|---|
private java.io.File |
dataDir |
private ISaveHandler |
parent |
private WorldServer |
world |
Constructor and Description |
---|
WorldSpecificSaveHandler(WorldServer world,
ISaveHandler parent) |
Modifier and Type | Method and Description |
---|---|
void |
checkSessionLock() |
private void |
copyFile(java.lang.String name,
java.io.File to) |
void |
flush() |
IChunkLoader |
getChunkLoader(WorldProvider var1) |
java.io.File |
getMapFileFromName(java.lang.String name) |
IPlayerFileData |
getPlayerNBTManager() |
TemplateManager |
getStructureTemplateManager() |
java.io.File |
getWorldDirectory() |
WorldInfo |
loadWorldInfo() |
void |
saveWorldInfo(WorldInfo var1) |
void |
saveWorldInfoWithPlayer(WorldInfo var1,
NBTTagCompound var2) |
private WorldServer world
private ISaveHandler parent
private java.io.File dataDir
public WorldSpecificSaveHandler(WorldServer world, ISaveHandler parent)
public WorldInfo loadWorldInfo()
loadWorldInfo
in interface ISaveHandler
public void checkSessionLock() throws MinecraftException
checkSessionLock
in interface ISaveHandler
MinecraftException
public IChunkLoader getChunkLoader(WorldProvider var1)
getChunkLoader
in interface ISaveHandler
public void saveWorldInfoWithPlayer(WorldInfo var1, NBTTagCompound var2)
saveWorldInfoWithPlayer
in interface ISaveHandler
public void saveWorldInfo(WorldInfo var1)
saveWorldInfo
in interface ISaveHandler
public IPlayerFileData getPlayerNBTManager()
getPlayerNBTManager
in interface ISaveHandler
public void flush()
flush
in interface ISaveHandler
public java.io.File getWorldDirectory()
getWorldDirectory
in interface ISaveHandler
public java.io.File getMapFileFromName(java.lang.String name)
getMapFileFromName
in interface ISaveHandler
private void copyFile(java.lang.String name, java.io.File to)
public TemplateManager getStructureTemplateManager()
getStructureTemplateManager
in interface ISaveHandler