In the analysis of modern war and peace, China is highly unlikely to attack the United States with military weapons. First, China knows that American military power, whatever it is these days, can never win a war in which China is involved. Second, China has some major needs. America is being used to fulfill a portion of those needs now. America is quite useful and that is why China will not want to totally contaminate U.S. soil with radiation or demolish this nation's industrial might by means of nuclear warfare.
China has a population problem and America has land.
China needs industrial capabilities such as the manufacturing and production plants that dot the U.S. landscape from Maine to California. China needs food, and America has long been the world's breadbasket. China needs modernization. America has the technology and the methodology. It even has most of the facilities in place.