Package net.minecraft.src
Interface ISaveHandler
- All Known Implementing Classes:
AnvilSaveHandler,AnvilSaveHandlerBTW,SaveHandler,SaveHandlerMP
public interface ISaveHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoidChecks the session lock to prevent save collisionsvoidflush()Called to flush all changes to disk, waiting for them to complete.getChunkLoader(WorldProvider var1) Returns the chunk loader with the provided world providergetMapFileFromName(String var1) Gets the file location of the given mapreturns null if no saveHandler is relevent (eg.Returns the name of the directory where world information is saved.voidloadModSpecificData(WorldServer world) Loads and returns the world infovoidsaveModSpecificData(WorldServer world) voidsaveWorldInfo(WorldInfo var1) Saves the passed in world info.voidsaveWorldInfoWithPlayer(WorldInfo var1, NBTTagCompound var2) Saves the given World Info with the given NBTTagCompound as the Player.
-
Method Details
-
loadWorldInfo
WorldInfo loadWorldInfo()Loads and returns the world info -
checkSessionLock
Checks the session lock to prevent save collisions- Throws:
MinecraftException
-
getChunkLoader
Returns the chunk loader with the provided world provider -
saveWorldInfoWithPlayer
Saves the given World Info with the given NBTTagCompound as the Player. -
saveWorldInfo
Saves the passed in world info. -
getSaveHandler
IPlayerFileData getSaveHandler()returns null if no saveHandler is relevent (eg. SMP) -
flush
void flush()Called to flush all changes to disk, waiting for them to complete. -
getMapFileFromName
Gets the file location of the given map -
getWorldDirectoryName
String getWorldDirectoryName()Returns the name of the directory where world information is saved. -
loadModSpecificData
-
saveModSpecificData
-