paramCount

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

Sets the Constructor parameter count.

You can use this method to specify only the parameter count without using param to specify parameter types.

A negative parameter count is ignored and param is used instead.

Return

BaseFinder.IndexTypeCondition

Parameters

num

the count.


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

Sets the Constructor parameter-count range.

You can use this method to specify only the parameter-count range without using param to specify parameter types.

Example:

paramCount(1..5)

Return

BaseFinder.IndexTypeCondition

Parameters

numRange

the count range.


fun paramCount(conditions: CountConditions): BaseFinder.IndexTypeCondition

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

Sets the Constructor parameter-count condition.

You can use this method to specify only a parameter-count condition without using param to specify parameter types.

Example:

paramCount { it >= 5 || it.isZero() }

Return

BaseFinder.IndexTypeCondition

Parameters

conditions

the condition block.


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

Sets the Constructor parameter count.

You can use this property to specify only the parameter count without using param to specify parameter types.

A negative parameter count is ignored and param is used instead.

Return

Int