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.
Implements
Undocumented Interfaces
TooltipProvider
Members
hasPatternAndMaterial(pattern as TrimPattern, material as TrimMaterial) as bool
Checks if the armor trim has a pattern and material.
Returns: Whether the armor trim has a pattern and material.
Parameters:
Return Type:
bool
innerTexture(material as ArmorMaterial) as ResourceLocation
Gets the inner texture of the armor trim.
Returns: The inner texture of the armor trim.
Parameters:
Return Type:
ResourceLocation
Getter
Gets the material of the armor trim.
Return Type:
TrimMaterial
static of(material as TrimMaterial, pattern as TrimPattern, showInTooltip as bool = true) as ArmorTrim
Creates a new ArmorTrim.
Returns: The new ArmorTrim.
Parameters:
showInTooltip: bool
(optional) Type: bool
- Whether the armor trim should show in the tooltip.
Default Value: true
Return Type:
ArmorTrim
outerTexture(material as ArmorMaterial) as ResourceLocation
Gets the outer texture of the armor trim.
Returns: The outer texture of the armor trim.
Parameters:
Return Type:
ResourceLocation
Getter
Gets the pattern of the armor trim.
Return Type:
TrimPattern
withTooltip(withTooltip as bool) as ArmorTrim
Sets whether the armor trim should show in the tooltip.
Returns: The new ArmorTrim.
Parameters:
withTooltip: bool
Type: bool
- Whether the armor trim should show in the tooltip.
Return Type:
ArmorTrim