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 DataContainerCreates a newDataContainerwith a defaultDataView.SafetyModeofDataView.SafetyMode.ALL_DATA_CLONED.static DataContainercreateNew(DataView.SafetyMode safety) Creates a newDataContainerwith the providedDataView.SafetyMode.Removes the data associated to the given path relative to thisDataView's path.default DataContainerSets the given boolean value to thisDataView's key.default DataContainerSets the given byte value to thisDataView's key.default DataContainerSets the given double value to thisDataView's key.default DataContainerSets the given float value to thisDataView's key.default DataContainerSets the given int value to thisDataView's key.default DataContainerSets the given long value to thisDataView's key.default DataContainerSets the given short value to thisDataView's key.default DataContainerSets the given Object value to thisDataView's key.default DataContainerSets the given String value to thisDataView's key.default DataContainerSets the given boolean value according to the given path relative to thisDataView's path.default DataContainerSets the given byte value according to the given path relative to thisDataView's path.default DataContainerSets the given double value according to the given path relative to thisDataView's path.default DataContainerSets the given float value according to the given path relative to thisDataView's path.default DataContainerSets the given int value according to the given path relative to thisDataView's path.default DataContainerSets the given long value according to the given path relative to thisDataView's path.default DataContainerSets the given short value according to the given path relative to thisDataView's path.Sets the given Object value according to the given path relative to thisDataView's path.default DataContainerSets the given String 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, 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, getView, getViewList, isEmpty, keys, name, parent, safetyMode, streamRootKeys, streamRootValues, values
-
Method Details
-
createNew
Creates a newDataContainerwith a defaultDataView.SafetyModeofDataView.SafetyMode.ALL_DATA_CLONED.- Returns:
- A new data container
-
createNew
Creates a newDataContainerwith 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:DataViewSets the given Object value according to the given path relative to thisDataView's path. -
set
Description copied from interface:DataViewSets the given String value according to the given path relative to thisDataView's path. -
set
Description copied from interface:DataViewSets the given boolean value according to the given path relative to thisDataView's path. -
set
Description copied from interface:DataViewSets the given byte value according to the given path relative to thisDataView's path. -
set
Description copied from interface:DataViewSets the given short value according to the given path relative to thisDataView's path. -
set
Description copied from interface:DataViewSets the given int value according to the given path relative to thisDataView's path. -
set
Description copied from interface:DataViewSets the given long value according to the given path relative to thisDataView's path. -
set
Description copied from interface:DataViewSets the given float value according to the given path relative to thisDataView's path. -
set
Description copied from interface:DataViewSets the given double value according to the given path relative to thisDataView's path. -
set
Description copied from interface:DataViewSets the given Object value to thisDataView's key. -
set
Description copied from interface:DataViewSets the given String value to thisDataView's key. -
set
Description copied from interface:DataViewSets the given boolean value to thisDataView's key. -
set
Description copied from interface:DataViewSets the given byte value to thisDataView's key. -
set
Description copied from interface:DataViewSets the given short value to thisDataView's key. -
set
Description copied from interface:DataViewSets the given int value to thisDataView's key. -
set
Description copied from interface:DataViewSets the given long value to thisDataView's key. -
set
Description copied from interface:DataViewSets the given float value to thisDataView's key. -
set
Description copied from interface:DataViewSets the given double value to thisDataView's key. -
remove
Description copied from interface:DataView
-