You can set up your Nintendo Switch for Minecraft cross-play by signing into your Microsoft account. Once you have done that, your Gamertag will be a point through which your friends can reach you in Minecraft. It is a free process and does not take more than a minute.