YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.world.storage.SaveHandler Class Reference
Inheritance diagram for net.minecraft.world.storage.SaveHandler:
net.minecraft.world.storage.ISaveHandler net.minecraft.world.storage.IPlayerFileData net.minecraft.world.chunk.storage.AnvilSaveHandler

Public Member Functions

 SaveHandler (File par1File, String par2Str, boolean par3)
 
File getWorldDirectory ()
 
void checkSessionLock () throws MinecraftException
 
IChunkLoader getChunkLoader (WorldProvider par1WorldProvider)
 
WorldInfo loadWorldInfo ()
 
void saveWorldInfoWithPlayer (WorldInfo par1WorldInfo, NBTTagCompound par2NBTTagCompound)
 
void saveWorldInfo (WorldInfo par1WorldInfo)
 
void writePlayerData (EntityPlayer par1EntityPlayer)
 
NBTTagCompound readPlayerData (EntityPlayer par1EntityPlayer)
 
NBTTagCompound getPlayerData (String par1Str)
 
IPlayerFileData getSaveHandler ()
 
String[] getAvailablePlayerDat ()
 
void flush ()
 
File getMapFileFromName (String par1Str)
 
String getWorldDirectoryName ()
 

Constructor & Destructor Documentation

net.minecraft.world.storage.SaveHandler.SaveHandler ( File  par1File,
String  par2Str,
boolean  par3 
)

Member Function Documentation

void net.minecraft.world.storage.SaveHandler.checkSessionLock ( ) throws MinecraftException

Checks the session lock to prevent save collisions

Implements net.minecraft.world.storage.ISaveHandler.

void net.minecraft.world.storage.SaveHandler.flush ( )

Called to flush all changes to disk, waiting for them to complete.

Implements net.minecraft.world.storage.ISaveHandler.

String [] net.minecraft.world.storage.SaveHandler.getAvailablePlayerDat ( )

Returns an array of usernames for which player.dat exists for.

Implements net.minecraft.world.storage.IPlayerFileData.

IChunkLoader net.minecraft.world.storage.SaveHandler.getChunkLoader ( WorldProvider  par1WorldProvider)

Returns the chunk loader with the provided world provider

Implements net.minecraft.world.storage.ISaveHandler.

File net.minecraft.world.storage.SaveHandler.getMapFileFromName ( String  par1Str)

Gets the file location of the given map

Implements net.minecraft.world.storage.ISaveHandler.

NBTTagCompound net.minecraft.world.storage.SaveHandler.getPlayerData ( String  par1Str)

Gets the player data for the given playername as a NBTTagCompound.

IPlayerFileData net.minecraft.world.storage.SaveHandler.getSaveHandler ( )

returns null if no saveHandler is relevent (eg. SMP)

Implements net.minecraft.world.storage.ISaveHandler.

File net.minecraft.world.storage.SaveHandler.getWorldDirectory ( )

Gets the File object corresponding to the base directory of this world.

String net.minecraft.world.storage.SaveHandler.getWorldDirectoryName ( )

Returns the name of the directory where world information is saved.

Implements net.minecraft.world.storage.ISaveHandler.

WorldInfo net.minecraft.world.storage.SaveHandler.loadWorldInfo ( )

Loads and returns the world info

Implements net.minecraft.world.storage.ISaveHandler.

NBTTagCompound net.minecraft.world.storage.SaveHandler.readPlayerData ( EntityPlayer  par1EntityPlayer)

Reads the player data from disk into the specified PlayerEntityMP.

Implements net.minecraft.world.storage.IPlayerFileData.

void net.minecraft.world.storage.SaveHandler.saveWorldInfo ( WorldInfo  par1WorldInfo)

Saves the passed in world info.

Implements net.minecraft.world.storage.ISaveHandler.

void net.minecraft.world.storage.SaveHandler.saveWorldInfoWithPlayer ( WorldInfo  par1WorldInfo,
NBTTagCompound  par2NBTTagCompound 
)

Saves the given World Info with the given NBTTagCompound as the Player.

Implements net.minecraft.world.storage.ISaveHandler.

void net.minecraft.world.storage.SaveHandler.writePlayerData ( EntityPlayer  par1EntityPlayer)

Writes the player data to disk from the specified PlayerEntityMP.

Implements net.minecraft.world.storage.IPlayerFileData.


The documentation for this class was generated from the following file: