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

◆ Item() [2/2]

Terraria.Item.Item ( int setDefaultsToType,
int stack = 1,
int prefix = 0 )
inline

Definition at line 1162 of file Item.cs.

1163 {
1165 if (setDefaultsToType > 0)
1166 {
1167 this.stack = stack;
1168 }
1169 if (prefix != 0)
1170 {
1171 Prefix(prefix);
1172 }
1173 }
int stack
The current stack of the item. F:Terraria.Item.maxStack indicates the max possible stack.
Definition Item.cs:396
bool Prefix(int prefixWeWant)
Attempts to apply a prefix to this T:Terraria.Item.
Definition Item.cs:1279
int prefix
The current prefix applied to this item. Either a T:Terraria.ID.PrefixID entry or M:Terraria....
Definition Item.cs:752
void SetDefaults(int Type=0)
Definition Item.cs:48800

References Terraria.Item.prefix, Terraria.Item.Prefix(), Terraria.Item.SetDefaults(), and Terraria.Item.stack.

+ Here is the call graph for this function: