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

Functions

Link copied to clipboard
abstract fun onEnter(key: String, self: Any, args: Array<Any>)
Called as the patched method is entered, before its body runs.