DataComponentPatchBuilder
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.
Members
build() as DataComponentPatch
Return Type:
DataComponentPatch
remove(type as DataComponentType<T>) as Builder
Parameters:
type: DataComponentType<T>
Type: DataComponentType<T>
Return Type:
DataComponentPatchBuilder
setComponent(type as DataComponentType<T>, value as T) as Builder
Parameters:
type: DataComponentType<T>
Type: DataComponentType<T>
value: T
Type: T
Return Type:
DataComponentPatchBuilder
setComponent(type as TypedDataComponent<T>) as Builder
Parameters:
type: TypedDataComponent<T>
Type: TypedDataComponent<T>
Return Type:
DataComponentPatchBuilder