To get a motorcycle licence in China you need a resident permit.
You need to have your home country's licence translated officially (+all you other documents like passport, visa etc)
Then you can enter the Chinese test. A medical, theoretical and practical test.