China did nothing we and the USA and the EU and others haven't done and they did nothing illegal. They held live fire naval exercises in international waters. They have advance warning for the live fire as they are requested (although not obligated) to.
This is all scare tactics to convince you to accept deeper cuts in public services so that NZ could buy expensive weapons from the USA and Europe.