Package net.minecraft.src
Class MapStorage
java.lang.Object
net.minecraft.src.MapStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetUniqueDataId(String par1Str) Returns an unique new data id for the given prefix and saves the idCounts map to the 'idcounts' file.Loads an existing MapDataBase corresponding to the given String id from disk, instantiating the given Class, or returns null if none such file exists. args: Class to instantiate, String dataidvoidSaves all dirty loaded MapDataBases to disk.voidsetData(String par1Str, WorldSavedData par2WorldSavedData) Assigns the given String id to the given MapDataBase, removing any existing ones of the same id.
-
Constructor Details
-
MapStorage
-
-
Method Details
-
loadData
Loads an existing MapDataBase corresponding to the given String id from disk, instantiating the given Class, or returns null if none such file exists. args: Class to instantiate, String dataid -
setData
Assigns the given String id to the given MapDataBase, removing any existing ones of the same id. -
saveAllData
public void saveAllData()Saves all dirty loaded MapDataBases to disk. -
getUniqueDataId
Returns an unique new data id for the given prefix and saves the idCounts map to the 'idcounts' file.
-