For Minecraft Java Edition you'll need to have a Microsoft account now.

minecraft.net/en-us/article/ja