A lot of people are wondering if this war will affect China. So let me quickly explain.
To set the table lets assume the worst and that all the iranian and gulf arab oil infrastructure built over half a century costing over a trillion is destroyed and there is massive shortage of oil internationally and that oil supply will not be returning soon.
Currently:
1. Over 60% of Chinese vehicles are EVs (and growing) and China uses more clean energy than the rest of the world combined such as hydro, wind, solar etc. Chinese people mainly travel via electric scooter, electric trains, electric vehicles or now growing in number: electric driverless buses.
2. China is the world leader in nuclear technology and coal technology and has enough reserves to power china industries for generations.
3. China will increase purchases of oil (if required) from Russia, Kazahstan, Brazil etc and China has the money to pay for it if its worth the cost.
4. At present China has a few billion barrels of oil in strategic reserves and will be used if required to transition from one power source to another.
5. China has successfully operated and installed the thorium reactor to the energy grid and has more nuclear reactor stations in development than rest of the world combined.
So..yes if the oil supply in Iran/Gulf suddenly stopped China will be impacted, however China will not be nearly as impacted as less developed nations whom don't have access to mass clean energy, nuclear energy and coal/oil reserves. Western nations will also likely to be impacted more due to heavier reliance on petrol as well.