public class MapStorage extends Object
Constructor and Description |
---|
MapStorage(ISaveHandler par1ISaveHandler) |
Modifier and Type | Method and Description |
---|---|
int |
getUniqueDataId(String par1Str)
Returns an unique new data id for the given prefix and saves the idCounts map to the 'idcounts' file.
|
WorldSavedData |
loadData(Class par1Class,
String par2Str)
Loads an existing MapDataBase corresponding to the given String id from disk, instantiating the given Class, or
returns null if none such file exists.
|
void |
saveAllData()
Saves all dirty loaded MapDataBases to disk.
|
void |
setData(String par1Str,
WorldSavedData par2WorldSavedData)
Assigns the given String id to the given MapDataBase, removing any existing ones of the same id.
|
public MapStorage(ISaveHandler par1ISaveHandler)
public WorldSavedData loadData(Class par1Class, String par2Str)
public void setData(String par1Str, WorldSavedData par2WorldSavedData)
public void saveAllData()
public int getUniqueDataId(String par1Str)