I don't think there's much chance Sony or Nintendo would have blocked the publishing of a Java version of Minecraft, if that had been on offer in place of Bedrock.

The rules are always flexible for huge games, especially when they'd otherwise be an exclusive for a competitor.