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

TrimPattern

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.TrimPattern;

Members

Getter
script.zs
// TrimPattern.assetId as ResourceLocation
myTrimPattern.assetId

Return Type: ResourceLocation

Getter
script.zs
// TrimPattern.commandString as string
myTrimPattern.commandString

Return Type: string

copyWithStyle(material as TrimMaterial) as Component
script.zs
// TrimPattern.copyWithStyle(material as TrimMaterial) as Component;
myTrimPattern.copyWithStyle(myTrimMaterial);

Parameters:

material Type: TrimMaterial

Return Type: Component

Getter
script.zs
// TrimPattern.decal as bool
myTrimPattern.decal

Return Type: bool

Getter
script.zs
// TrimPattern.description as Component
myTrimPattern.description

Return Type: Component

Getter
script.zs
// TrimPattern.registryName as ResourceLocation
myTrimPattern.registryName

Return Type: ResourceLocation

Getter
script.zs
// TrimPattern.templateItem as ItemDefinition
myTrimPattern.templateItem

Return Type: ItemDefinition