PatchInterceptCallback

Game-side head-side decision callback, SAM-converted from a Kotlin lambda: Patches.intercept("...", "...") { key, self, args -> ... }. Runs on whatever thread the patched method runs on — cheap and non-blocking is the contract.

Fires before the body. Writing into args rewrites the method's arguments; the returned PatchDecision says whether the body runs at all.

See also

for the return-side decision

Functions

Link copied to clipboard
abstract fun intercept(key: String, self: Any, args: Array<Any>): PatchDecision
Called before the patched method's body runs.