China's SOEs are fairly autonomous so I wonder how much of this for safety/security reasons vs ideological/political reasons.
Even if China is looking at this from a two-state solution lens, its pretty obvious that Israel's behaviour is a threat to the entire region.
This is most likely due to economic reasons, credit to Ansarallah for this. China foreign policy is geared towards stability maintenance so as to develop their economy. I understand that rationale but imo if they were cooler, a shipping ban would be in place before the Yemeni blockade.
What is important to note is that China is Israel's second largest import source and third largest export destination.