Home Commands Examples Getting Started With Scripts Global Keywords 1.21 Migration Guide
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

TrimMaterial

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.armortrim.TrimMaterial;

Members

Getter
script.zs
// TrimMaterial.assetName as string
myTrimMaterial.assetName

Return Type: string

Getter
script.zs
// TrimMaterial.commandString as string
myTrimMaterial.commandString

Return Type: string

Getter
script.zs
// TrimMaterial.description as Component
myTrimMaterial.description

Return Type: Component

Getter
script.zs
// TrimMaterial.ingredient as ItemDefinition
myTrimMaterial.ingredient

Return Type: ItemDefinition

Getter
script.zs
// TrimMaterial.itemModelIndex as float
myTrimMaterial.itemModelIndex

Return Type: float

Getter
script.zs
// TrimMaterial.overrideArmorMaterials as string[ArmorMaterial]
myTrimMaterial.overrideArmorMaterials

Return Type: string[ArmorMaterial]