Package net.minecraft.src
Class SaveHandlerMP
java.lang.Object
net.minecraft.src.SaveHandlerMP
- All Implemented Interfaces:
ISaveHandler
-
Constructor Summary
Constructors -
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 par1WorldProvider) Returns the chunk loader with the provided world providergetMapFileFromName(String par1Str) 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 par1WorldInfo) Saves the passed in world info.voidsaveWorldInfoWithPlayer(WorldInfo par1WorldInfo, NBTTagCompound par2NBTTagCompound) Saves the given World Info with the given NBTTagCompound as the Player.
-
Constructor Details
-
SaveHandlerMP
public SaveHandlerMP()
-
-
Method Details
-
loadWorldInfo
Loads and returns the world info- Specified by:
loadWorldInfoin interfaceISaveHandler
-
checkSessionLock
Checks the session lock to prevent save collisions- Specified by:
checkSessionLockin interfaceISaveHandler- Throws:
MinecraftException
-
getChunkLoader
Returns the chunk loader with the provided world provider- Specified by:
getChunkLoaderin interfaceISaveHandler
-
saveWorldInfoWithPlayer
Saves the given World Info with the given NBTTagCompound as the Player.- Specified by:
saveWorldInfoWithPlayerin interfaceISaveHandler
-
saveWorldInfo
Saves the passed in world info.- Specified by:
saveWorldInfoin interfaceISaveHandler
-
getSaveHandler
returns null if no saveHandler is relevent (eg. SMP)- Specified by:
getSaveHandlerin interfaceISaveHandler
-
flush
public void flush()Called to flush all changes to disk, waiting for them to complete.- Specified by:
flushin interfaceISaveHandler
-
getMapFileFromName
Gets the file location of the given map- Specified by:
getMapFileFromNamein interfaceISaveHandler
-
getWorldDirectoryName
Returns the name of the directory where world information is saved.- Specified by:
getWorldDirectoryNamein interfaceISaveHandler
-
loadModSpecificData
- Specified by:
loadModSpecificDatain interfaceISaveHandler
-
saveModSpecificData
- Specified by:
saveModSpecificDatain interfaceISaveHandler
-