It's called "Piñata".
Pinatas
pinata
If you are asking this question under "candy", then I presume you mean the container that contains candy. It's called "Piñata".
A pinata, a container often made of papier-mache, cloth, or pottery and filled with fruit, toys, or both, is broken on Christmas.
The Mexican ornament that is broken at Christmas and other celebrations is called a piñata.
nothing but broken glass
Yes, it can.
Obviously, a broken glass recycle container should only contain broken glass. Keeping recycled products separated helps workers in recycling plants.
Pinata.
Part of the modern concept of female beauty, is beautiful fingernails, often elaborately painted or decorated. Broken nails spoil the effect.
It doesn't expand to take the shape of its container, but it flows because the particles can slide past each other, and the bonds are loose, and not completely broken, whereas in gases, the bonds between particles have been broken down, and so they can move apart and fill the container.
A common Mexican tradition is breaking a piñata for Christmas, usually one shaped like a star.