Hook up calling the generated methods.

Everything surprisingly works pretty well, other than no support for the mod compatibility layer yet.