Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.item.armortrim.ArmorTrim;

Name: of

Return Type: ArmorTrim

ZenScript
Copy
ArmorTrim.of(material as TrimMaterial, pattern as TrimPattern, showInTooltip as boolean) as ArmorTrim
ParameterTypeOptionalDefault Value
Parameter
material
Type
TrimMaterial
Optional
false
Default Value
Parameter
pattern
Type
TrimPattern
Optional
false
Default Value
Parameter
showInTooltip
Type
boolean
Optional
true
Default Value
true

Link to hasPatternAndMaterial

Name: hasPatternAndMaterial

Return Type: boolean

ZenScript
Copy
ArmorTrim.hasPatternAndMaterial(pattern as TrimPattern, material as TrimMaterial) as boolean
ParameterType
Parameter
pattern
Type
TrimPattern
Parameter
material
Type
TrimMaterial

Name: innerTexture

Return Type: ResourceLocation

ZenScript
Copy
ArmorTrim.innerTexture(material as ArmorMaterial) as ResourceLocation
ParameterType
Parameter
material
Type
ArmorMaterial

Name: outerTexture

Return Type: ResourceLocation

ZenScript
Copy
ArmorTrim.outerTexture(material as ArmorMaterial) as ResourceLocation
ParameterType
Parameter
material
Type
ArmorMaterial

Name: withTooltip

Return Type: ArmorTrim

ZenScript
Copy
ArmorTrim.withTooltip(withTooltip as boolean) as ArmorTrim
ParameterType
Parameter
withTooltip
Type
boolean
NameTypeHas GetterHas Setter
Name
material
Type
TrimMaterial
Has Getter
true
Has Setter
false
Name
pattern
Type
TrimPattern
Has Getter
true
Has Setter
false