Egg Pawn (spear)

You may be looking for E-1001 Egg Pawn or Egg Knight.

The Knight Pawn is a badnik that appears on Sonic Rush. They were created by Eggman and are a variation of Egg Pawns. They reappear in Sonic Generations for the 3DS version.

Appearance
Knight Pawns has the body model of an Egg Pawn, but is colored black instead of a typical red. It holds a lance, has a knight-looking hat on the top of its head, and has cyan eyes.

Sonic Rush
Knight Pawns appear only in the stage Water Palace. Their attack is similar to a regular Egg Pawn; they run at Sonic (or Blaze) and attack Sonic or Blaze with its lance. It can be defeated by either a Spin Dash or by stomping on its head.

Sonic Generations
Knight Pawns reappear in the same stage as before. No attack patterns have change what so ever in their leap towards the Nintendo 3DS.