DataComponentMap
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Description
A map ofDataComponentType
s to their values. Implements
Undocumented Interfaces
Iterable<TypedDataComponent<?>>
Operators
Members
Returns: A new DataComponentMap.Builder.
Return Type:
DataComponentMapBuilder
DataComponentMap
s.Returns: A new DataComponentMap
that is the result of combining the two DataComponentMap
s.
Parameters:
Return Type:
DataComponentMap
DataComponentType
.Returns: The value of the data component for the given type.
Parameters:
Return Type:
T?
DataComponentType
. If the data component is not present, the default value is returned.Returns: The value of the data component for the given type.
Parameters:
defaultValue: T
Type: T
- The default value to return if the data component is not present.
Return Type:
T
TypedDataComponent
for the given DataComponentType
.Returns: The TypedDataComponent
for the given type.
Parameters:
type: DataComponentType<T>
Type: DataComponentType<T>
- The DataComponentType
to get the TypedDataComponent
for.
Return Type:
TypedDataComponent<T>
DataComponentType
.Returns: True if the data component map has the DataComponentType
, false otherwise.
Parameters:
Return Type:
bool
Return Type:
bool
DataComponentType
s in the data component map.
Return Type:
Set<DataComponentType<?>>
Return Type:
List<TypedDataComponent<?>>
Return Type:
int