Added back ApiEntityBase.swapEntityClass

This seems to have been forgotten.

The SwapEntitySpawn isn't really suficient on its own if you want to replace the class a game uses for an entity entirely. Even though modders may be able to figure this out themselves the method is still nice to have.