DataComponentMapBuilder
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.
import crafttweaker.api.component.DataComponentMapBuilder;
Implements
Undocumented Interfaces
IDataComponentMapBuilderExtensions
Members
addAll(other as DataComponentMap) as Builder
myBuilder.addAll(myDataComponentMap);
Parameters:
other: DataComponentMap
Type: DataComponentMap
Return Type:
DataComponentMapBuilder
build() as DataComponentMap
setComponent(type as DataComponentType<T>, value as T?) as Builder
myBuilder.setComponent<T>(myDataComponentType, myT);
Parameters:
type: DataComponentType<T>
Type: DataComponentType<T>
value: T?
Type: T?
Return Type:
DataComponentMapBuilder