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
Creates a new CustomModelData with the given value.

Returns: The new CustomModelData.

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

Parameters:

value Type: int - The value to create the CustomModelData with.

Return Type: CustomModelData

Getter
Gets the value of the CustomModelData.
script.zs
// CustomModelData.value as int
myCustomModelData.value

Return Type: int