PatchEnterCallback
Game-side entry-patch callback. A Kotlin lambda written in an execute_code snippet becomes one of these via SAM conversion: Patches.onEnter("...", "...") { key, self, args -> ... }. Runs on whatever thread the patched method runs on — cheap and non-blocking is the contract.
See also
for the exit phase