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

ArmorTrim

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

Implements

Undocumented Interfaces

TooltipProvider

Members

hasPatternAndMaterial(pattern as TrimPattern, material as TrimMaterial) as bool
script.zs
// ArmorTrim.hasPatternAndMaterial(pattern as TrimPattern, material as TrimMaterial) as bool;
myArmorTrim.hasPatternAndMaterial(myTrimPattern, myTrimMaterial);

Parameters:

pattern Type: TrimPattern
material Type: TrimMaterial

Return Type: bool

innerTexture(material as ArmorMaterial) as ResourceLocation
script.zs
// ArmorTrim.innerTexture(material as ArmorMaterial) as ResourceLocation;
myArmorTrim.innerTexture(myArmorMaterial);

Parameters:

material Type: ArmorMaterial

Return Type: ResourceLocation

Getter
script.zs
// ArmorTrim.material as TrimMaterial
myArmorTrim.material

Return Type: TrimMaterial

static of(material as TrimMaterial, pattern as TrimPattern, showInTooltip as bool = true) as ArmorTrim
script.zs
// ArmorTrim.of(material as TrimMaterial, pattern as TrimPattern, showInTooltip as bool = true) as ArmorTrim;
ArmorTrim.of(myTrimMaterial, myTrimPattern, myBool);

Parameters:

material Type: TrimMaterial
pattern Type: TrimPattern
showInTooltip (optional) Type: bool

Default Value: true

Return Type: ArmorTrim

outerTexture(material as ArmorMaterial) as ResourceLocation
script.zs
// ArmorTrim.outerTexture(material as ArmorMaterial) as ResourceLocation;
myArmorTrim.outerTexture(myArmorMaterial);

Parameters:

material Type: ArmorMaterial

Return Type: ResourceLocation

Getter
script.zs
// ArmorTrim.pattern as TrimPattern
myArmorTrim.pattern

Return Type: TrimPattern

withTooltip(withTooltip as bool) as ArmorTrim
script.zs
// ArmorTrim.withTooltip(withTooltip as bool) as ArmorTrim;
myArmorTrim.withTooltip(myBool);

Parameters:

withTooltip Type: bool

Return Type: ArmorTrim