The problem being that in a war versus the US china would instantly lose any Oil, food and resource inports that arent coming by way of land. Resources would be embargoed by Australia, oil would be interdicted from Diego Garcia.
India can similarly interdict Oil movement into China.
Hence China cultivating the central Asian states & Russia, extending internal pipeline networks, & planning cross-border pipelines.