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
Gets the asset name of the trim material.
script.zs
// TrimMaterial.assetName as string
myTrimMaterial.assetName

Return Type: string

Getter
Gets the command string of the trim material.
script.zs
// TrimMaterial.commandString as string
myTrimMaterial.commandString

Return Type: string

Getter
Gets the description of the trim material.
script.zs
// TrimMaterial.description as Component
myTrimMaterial.description

Return Type: Component

Getter
Gets the ingredient of the trim material.
script.zs
// TrimMaterial.ingredient as ItemDefinition
myTrimMaterial.ingredient

Return Type: ItemDefinition

Getter
Gets the item model index of the trim material.
script.zs
// TrimMaterial.itemModelIndex as float
myTrimMaterial.itemModelIndex

Return Type: float

Getter
Gets the override armor materials of the trim material.
script.zs
// TrimMaterial.overrideArmorMaterials as string[ArmorMaterial]
myTrimMaterial.overrideArmorMaterials

Return Type: string[ArmorMaterial]