Pakistan is a special case in that its strategic position offers compelling logic in favor of an alliance with China. Both are now moving to gain control over and exploit Afghanistan and to develop military advantages against India.
India, in turn, is beginning to recognize her vulnerability, even to the point of trying to remedy her longstanding deficiencies in armaments. My guess though is that it will take more Chinese bullying before India's politicians give up the endemic corruption that has enfeebled India's military.
As for China herself, her greatest asset against the US and its allies is the leverage that she has gained through predatory commercial practices, spying, and influence operations. On the whole, China prefers to make gains without the expense and risks of direct military action.
In the event, China may prefer bluff and bullying to an open attack on Taiwan. As China knows, a direct attack could trigger a shut out from the world's markets, the loss of much oversea investment wealth, and the US and allied navies sweeping up China's maritime fleet.
Maybe we could use a war to repudiate debt held by the PRC and its allies?
Certainly we could put an end to the PRC merchant marine; wait? Can we do that any more? (I has always amused me how we objected to German unrestricted submarine warfare, then turned around and waged unrestricted submarine warfare against the Japanese and did a better job than the Germans ever did... We had better subs and worse torpedoes.)