When a larva is big enough, it stops eating and spins a cacoon around itself. It is then called a pupa. It doesn't eat any more, and the nurse bees cap its cell over with beeswax.