MCPcopy Create free account
hub / github.com/canyie/pine / hook

Method hook

core/src/main/java/top/canyie/pine/Pine.java:250–252  ·  view source on GitHub ↗

Register a hook that will be invoked when the method is invoked. Note that this will initialize Pine library if uninitialized. @param method The method want to control. @param callback The callback that will be invoked when the method is invoked. @return The unhook for this hook. Cal

(Member method, MethodHook callback)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

runMethod · 0.95

Calls 6

ensureInitializedMethod · 0.95
beforeHookMethod · 0.95
getArtMethodMethod · 0.95
afterHookMethod · 0.95
getMethod · 0.80
handleHookMethod · 0.65

Tested by 1

runMethod · 0.76