Type Alias: ArmorPiece
ts
type ArmorPiece =
| string
| {
asset: string;
color?: number;
glint?: boolean;
trim?: ArmorTrim;
};Defined in: packages/minerender/src/armor/Armor.ts:20
An equipment asset ID, such as minecraft:diamond, or the asset with the worn item's state.
Union Members
string
Type Literal
ts
{
asset: string;
color?: number;
glint?: boolean;
trim?: ArmorTrim;
}asset
ts
asset: string;color?
ts
optional color?: number;dyed_color as an RGB integer.
glint?
ts
optional glint?: boolean;Draws the enchantment glint, as an enchanted item does.
trim?
ts
optional trim?: ArmorTrim;