public class SaveDataMemoryStorage extends MapStorage
loadedDataMap
Constructor and Description |
---|
SaveDataMemoryStorage() |
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) |
@Nullable public WorldSavedData getOrLoadData(java.lang.Class<? extends WorldSavedData> clazz, java.lang.String dataIdentifier)
getOrLoadData
in class MapStorage
public void setData(java.lang.String dataIdentifier, WorldSavedData data)
setData
in class MapStorage
public void saveAllData()
saveAllData
in class MapStorage
public int getUniqueDataId(java.lang.String key)
getUniqueDataId
in class MapStorage