Should this happen, Microsoft would most likely not allow mods and at that point, I'd end up just leaving to find another game, or at worst, make one myself.
Because if Mojang can't be bothered to make a modding API, Microsoft will certainly be worse.
Also, Microsoft would be getting one giant...