A masked thug who launched fireworks at police during a night of “mass disorder” has been told he is facing a jail sentence.