public class MapStorage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,WorldSavedData> |
loadedDataMap |
Constructor and Description |
---|
MapStorage(ISaveHandler saveHandlerIn) |
Modifier and Type | Method and Description |
---|---|
WorldSavedData |
getOrLoadData(java.lang.Class<? extends WorldSavedData> clazz,
java.lang.String dataIdentifier) |
int |
getUniqueDataId(java.lang.String key) |
void |
saveAllData() |
void |
setData(java.lang.String dataIdentifier,
WorldSavedData data) |
protected java.util.Map<java.lang.String,WorldSavedData> loadedDataMap
public MapStorage(ISaveHandler saveHandlerIn)
@Nullable public WorldSavedData getOrLoadData(java.lang.Class<? extends WorldSavedData> clazz, java.lang.String dataIdentifier)
public void setData(java.lang.String dataIdentifier, WorldSavedData data)
public void saveAllData()
public int getUniqueDataId(java.lang.String key)