Interface DataContainer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.data.persistence.DataView
DataView.SafetyMode
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static DataContainer
createNew()
Creates a newDataContainer
with a defaultDataView.SafetyMode
ofDataView.SafetyMode.ALL_DATA_CLONED
.static DataContainer
createNew(DataView.SafetyMode safety)
Creates a newDataContainer
with the providedDataView.SafetyMode
.DataContainer
remove(DataQuery path)
Removes the data associated to the given path relative to thisDataView
's path.DataContainer
set(DataQuery path, java.lang.Object value)
Sets the given Object value according to the given path relative to thisDataView
's path.-
Methods inherited from interface org.spongepowered.api.data.persistence.DataView
container, contains, contains, copy, copy, createView, createView, currentPath, get, getBoolean, getBooleanList, getByte, getByteList, getCharacterList, getDataKey, getDataKeyList, getDouble, getDoubleList, getFloat, getFloatList, getInt, getIntegerList, getList, getLong, getLongList, getMap, getMapList, getObject, getObjectList, getRegistryValue, getRegistryValue, getRegistryValueList, getRegistryValueList, getResourceKey, getResourceKeyList, getSerializable, getSerializableList, getShort, getShortList, getString, getStringList, getView, getViewList, isEmpty, keys, name, parent, safetyMode, values
-
-
-
-
Method Detail
-
createNew
static DataContainer createNew()
Creates a newDataContainer
with a defaultDataView.SafetyMode
ofDataView.SafetyMode.ALL_DATA_CLONED
.- Returns:
- A new data container
-
createNew
static DataContainer createNew(DataView.SafetyMode safety)
Creates a newDataContainer
with the providedDataView.SafetyMode
.- Parameters:
safety
- The safety mode to use- Returns:
- A new data container with the provided safety mode
- See Also:
DataView.SafetyMode
-
set
DataContainer set(DataQuery path, java.lang.Object value)
Description copied from interface:DataView
Sets the given Object value according to the given path relative to thisDataView
's path.
-
remove
DataContainer remove(DataQuery path)
Description copied from interface:DataView
-
-