Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
FindItem()
[1/4]
int Terraria.Player.FindItem
(
bool
[]
validtypes
)
inline
Definition at line
52407
of file
Player.cs
.
52408
{
52409
for
(
int
i = 0;
i
< 58;
i
++)
52410
{
52411
if
(
inventory
[i].stack > 0 &&
validtypes
[
inventory
[i].
type
])
52412
{
52413
return
i
;
52414
}
52415
}
52416
return
-1;
52417
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
Terraria.Player.inventory
Item[] inventory
Definition
Player.cs:1257
System.Text.RegularExpressions.ExceptionArgument.i
@ i
System.ExceptionArgument.type
@ type
References
System.type
.
Terraria
Player
Generated by
1.10.0