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

◆ DefaultToHeadgear()

void Terraria.Item.DefaultToHeadgear ( int newwidth,
int newheight,
int helmetArtID )
inline

Modders should not use this.

Definition at line 48731 of file Item.cs.

48732 {
48733 width = newwidth;
48734 height = newheight;
48736 }
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
int headSlot
Definition Item.cs:542

References Terraria.Item.headSlot, Terraria.Entity.height, and Terraria.Entity.width.

Referenced by Terraria.Item.SetDefaults5().

+ Here is the caller graph for this function: