Interface DataContainer
- All Superinterfaces:
DataView
Represents a data structure that contains data. A DataContainer is
an object that can be considered a root
DataView
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.data.persistence.DataView
DataView.SafetyMode
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataContainer
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
.Removes the data associated to the given path relative to thisDataView
's path.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 Details
-
createNew
Creates a newDataContainer
with a defaultDataView.SafetyMode
ofDataView.SafetyMode.ALL_DATA_CLONED
.- Returns:
- A new data container
-
createNew
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:
-
set
Description copied from interface:DataView
Sets the given Object value according to the given path relative to thisDataView
's path. -
remove
Description copied from interface:DataView
-