TypedDataComponent
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
applyTo(patchedMap as PatchedDataComponentMap)
Parameters:
patchedMap: PatchedDataComponentMap
Type: PatchedDataComponentMap
static of<T>(type as DataComponentType<T>, value as T) as TypedDataComponent<T>
Parameters:
type: DataComponentType<T>
Type: DataComponentType<T>
value: T
Type: T
Return Type:
TypedDataComponent<T>
Getter
Return Type:
ResourceLocation
type() as DataComponentType<T>
Return Type:
DataComponentType<T>
value() as T
Return Type:
T