For Minecraft Java Edition you'll need to have a Microsoft account now.
https://www.minecraft.net/en-us/article/java-edition-moving-house