A ballcock is a ball float on the end of a lever in the water
closet of a toilet. As the level of water in the closet rises, so
does the floating ballcock. When the water level is high enough,
the lever operates a sliding valve and the water coming into the
closet is shut off.