Terraria.Player.HasItem C# (CSharp) Method

HasItem() public method

public HasItem ( int type ) : bool
type int
return bool
        public bool HasItem(int type)
        {
            for (int index = 0; index < 58; ++index)
            {
                if (type == this.inventory[index].itemId && this.inventory[index].stack > 0)
                    return true;
            }
            return false;
        }
Player