Package-level declarations

Types

Link copied to clipboard
class Hook(val callback: Action1<XC_MethodHook.MethodHookParam>) : XC_MethodHook

Runs the specified callback after the hooked Member

Link copied to clipboard
class InsteadHook(val callback: (XC_MethodHook.MethodHookParam) -> Any?) : XC_MethodHook

Runs the specified callback instead of the hooked Member

Link copied to clipboard
open class Patcher
Link copied to clipboard
class PreHook(val callback: Action1<XC_MethodHook.MethodHookParam>) : XC_MethodHook

Runs the specified callback before the hooked Member

Functions

Link copied to clipboard
inline fun <T> PatcherAPI.after(vararg paramTypes: Class<*>, crossinline callback: HookCallback<T>): Runnable

Adds a Hook to a constructor of a class.

inline fun <T> PatcherAPI.after(methodName: String, vararg paramTypes: Class<*>, crossinline callback: HookCallback<T>): Runnable

Adds a Hook to a method of a class.

Link copied to clipboard
inline fun <T> PatcherAPI.before(vararg paramTypes: Class<*>, crossinline callback: HookCallback<T>): Runnable

Adds a PreHook to a constructor of a class.

inline fun <T> PatcherAPI.before(methodName: String, vararg paramTypes: Class<*>, crossinline callback: HookCallback<T>): Runnable

Adds a PreHook to a method of a class.

Link copied to clipboard
inline operator fun XC_MethodHook.MethodHookParam.component1(): XC_MethodHook.MethodHookParam
Link copied to clipboard
inline operator fun <T> XC_MethodHook.MethodHookParam.component10(): T
Link copied to clipboard
inline operator fun <T> XC_MethodHook.MethodHookParam.component11(): T
Link copied to clipboard
inline operator fun <T> XC_MethodHook.MethodHookParam.component12(): T
Link copied to clipboard
inline operator fun <T> XC_MethodHook.MethodHookParam.component2(): T
Link copied to clipboard
inline operator fun <T> XC_MethodHook.MethodHookParam.component3(): T
Link copied to clipboard
inline operator fun <T> XC_MethodHook.MethodHookParam.component4(): T
Link copied to clipboard
inline operator fun <T> XC_MethodHook.MethodHookParam.component5(): T
Link copied to clipboard
inline operator fun <T> XC_MethodHook.MethodHookParam.component6(): T
Link copied to clipboard
inline operator fun <T> XC_MethodHook.MethodHookParam.component7(): T
Link copied to clipboard
inline operator fun <T> XC_MethodHook.MethodHookParam.component8(): T
Link copied to clipboard
inline operator fun <T> XC_MethodHook.MethodHookParam.component9(): T
Link copied to clipboard
inline fun <T> PatcherAPI.instead(vararg paramTypes: Class<*>, crossinline callback: InsteadHookCallback<T>): Runnable

Replaces a constructor of a class.

inline fun <T> PatcherAPI.instead(methodName: String, vararg paramTypes: Class<*>, crossinline callback: InsteadHookCallback<T>): Runnable

Replaces a method of a class.