mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-26 07:19:26 -09:00
5 lines
364 B
Markdown
5 lines
364 B
Markdown
## ModAPI.hooks
|
|
- To replace a function with another, you can use:
|
|
- `ModAPI.hooks.methods[ModAPI.util.getMethodFromPackage("com.package.abc.MyClass", "myMethod")] = function () {}`
|
|
- To intercept inputs to a function, you can us
|
|
- `ModAPI.hooks.methods[ModAPI.util.getMethodFromPackage("com.package.abc.MyClass", "myMethod")] = function () {}` |