onEnter

fun onEnter(className: String, methodName: String, params: List<String>?, tag: String?, cb: PatchEnterCallback): PatchHandle

Patch the method(s) named methodName on className to fire cb on entry. params selects a single overload — see Patches.onEnter for its spelling — or null to weave every overload of that name. Callers pass mojmap class/method names. Returns a handle exposing the fire count, the woven targets, and the id Patches.remove takes to restore the original bytecode.