There's no evidence to suggest that the scenes were all in Littlefoot's mind. If they were, we would see a shot of him waking up from the experience, or there may be an effect, maybe fuzzy edges, or some hint it's a dream.
Far as I'm concerned, those scenes happened; they weren't Littlefoot's imagination.