Pre Hook
Invokes the provided MethodHookCallback before the hooked method or constructor runs.
This small XC_MethodHook forwards the beforeHookedMethod event to the given callback. Any exceptions thrown by the callback are caught and logged via Patcher.logger.