ArmorTrim
Link to armortrim
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 Copyimport crafttweaker.api.item.armortrim.ArmorTrim;
Static Methods
Link to static-methods
Name: of
Return Type: ArmorTrim
ZenScript CopyArmorTrim.of(material as TrimMaterial, pattern as TrimPattern, showInTooltip as boolean) as ArmorTrim
Parameter | Type | Optional | Default 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 |
Methods
Link to methods
Name: hasPatternAndMaterial
Return Type: boolean
ZenScript CopyArmorTrim.hasPatternAndMaterial(pattern as TrimPattern, material as TrimMaterial) as boolean
Parameter | Type |
---|---|
Parameter pattern | Type TrimPattern |
Parameter material | Type TrimMaterial |
Name: innerTexture
Return Type: ResourceLocation
ZenScript CopyArmorTrim.innerTexture(material as ArmorMaterial) as ResourceLocation
Parameter | Type |
---|---|
Parameter material | Type ArmorMaterial |
Name: outerTexture
Return Type: ResourceLocation
ZenScript CopyArmorTrim.outerTexture(material as ArmorMaterial) as ResourceLocation
Parameter | Type |
---|---|
Parameter material | Type ArmorMaterial |
Name: withTooltip
Return Type: ArmorTrim
ZenScript CopyArmorTrim.withTooltip(withTooltip as boolean) as ArmorTrim
Parameter | Type |
---|---|
Parameter withTooltip | Type boolean |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name material | Type TrimMaterial | Has Getter true | Has Setter false |
Name pattern | Type TrimPattern | Has Getter true | Has Setter false |