Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
FindItem()
[3/4]
int Terraria.Player.FindItem
(
int
type
,
Item
[]
collection
)
inline
Definition at line
52419
of file
Player.cs
.
52420
{
52421
for
(
int
i = 0;
i
<
collection
.Length;
i
++)
52422
{
52423
if
(
inventory
[i].stack > 0 &&
type
==
collection
[i].
type
)
52424
{
52425
return
i
;
52426
}
52427
}
52428
return
-1;
52429
}
Terraria.Player.inventory
Item[] inventory
Definition
Player.cs:1257
System.Text.RegularExpressions.ExceptionArgument.i
@ i
System.ExceptionArgument.type
@ type
System.ExceptionArgument.collection
@ collection
References
System.collection
, and
System.type
.
Terraria
Player
Generated by
1.10.0