Pastry cream is a custard variation, made by combining milk, sugar, eggs and flour or starch, and cooking it over direct heat until it comes to boil. Pastry cream is used as a filling for éclairspastry cream Danish pockets, as the base for diplomat cream and German butter cream.