Beds allow you to skip forward a number of hours, depending on the bed, in single-player and multiplayer, when all players are sleeping.