Complex sentence: The Tokugawa Shogunate were still in power, if China had done such a thing the Shogun would have taken such an attack as an act of war.
Split into simpler sentences: The Tokugawa Shogunate were still in power. If China had done such a thing the Shogun would have taken such an attack as an act of war.