superClass

fun superClass(isOnlySuperClass: Boolean = false)

Deprecated

YukiHookAPI will completely remove the API of its own reflection part in version 2.0.0. We recommend that you use KavaRef to implement reflection for better performance and maintainability. See: https://github.com/HighCapable/KavaRef

Searches for the current Constructor in all superclasses of classSet.

  • A deep superclass hierarchy may take time to search. The API stops at the last class before Any.

Parameters

isOnlySuperClass

whether to search only superclasses of classSet. This has no effect when the superclass is Any.