It is used in Japanese tea ceremony and for dying and flavoring foods such as mochi and soba noodles , green tea ice cream and different types of wagashi ( Japanese confectionery ) . In modern times , matcha has also come to be used to flavor and dye foods such as mochi and soba noodles , green tea ice cream and a variety of wagashi ( Japanese confectionery ) .