TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ IsVanitySet()

virtual bool Terraria.ModLoader.EquipTexture.IsVanitySet ( int head,
int body,
int legs )
inlinevirtual

Returns whether or not the head armor, body armor, and leg armor textures make up a set. This hook is used for the PreUpdateVanitySet, UpdateVanitySet, and ArmorSetShadows hooks. By default this will return the same thing as the associated ModItem's IsVanitySet, or false if no ModItem is associated.

Parameters
head
body
legs
Returns

Definition at line 55 of file EquipTexture.cs.

56 {
57 if (Item == null)
58 {
59 return false;
60 }
61 return Item.IsVanitySet(head, body, legs);
62 }
ModItem Item
The item that is associated with this equipment texture. Null if no item is associated with this.
virtual bool IsVanitySet(int head, int body, int legs)
Returns whether or not the head armor, body armor, and leg armor textures make up a set....
Definition ModItem.cs:845