CustomModelData

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.item.component.CustomModelData;

Members

static of(value as int) as CustomModelData
script.zs
// CustomModelData.of(value as int) as CustomModelData;
CustomModelData.of(myInt);

Parameters:

value Type: int

Return Type: CustomModelData

Getter
script.zs
// CustomModelData.value as int
myCustomModelData.value

Return Type: int