DataComponentType

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.

script.zs
import crafttweaker.api.component.DataComponentType;

Members

Getter
script.zs
// DataComponentType<T>.commandString as string
myDataComponentType.commandString

Return Type: string

Getter
script.zs
// DataComponentType<T>.isTransient as bool
myDataComponentType.isTransient

Return Type: bool