Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
HasItem()
[2/2]
bool
Terraria.Player.HasItem
(
int
type
,
Item
[]
collection
)
inline
Definition at line
52317
of file
Player.cs
.
52318
{
52319
for
(
int
i = 0;
i
<
collection
.Length;
i
++)
52320
{
52321
if
(
type
==
collection
[i].
type
&&
collection
[i].stack > 0)
52322
{
52323
return
true
;
52324
}
52325
}
52326
return
false
;
52327
}
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