There are a few ways to thicken homemade pudding, including the use of egg yolks, cornstarch, or gelatin. This recipe uses egg yolks and a bit of cornstarch to achieve a perfectly thick but still soft texture (unlike pudding made with gelatin, which will be more firm). Also be sure to cook the pudding long enough, since undercooked pudding will not thicken and set properly.