mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
Added HookParam any() method in args instance
This commit is contained in:
@@ -255,6 +255,12 @@ class HookParam(private val createrInstance: YukiHookCreater, private val wrappe
|
||||
*/
|
||||
fun boolean() = cast() ?: false
|
||||
|
||||
/**
|
||||
* 得到方法参数的实例对象 [Any]
|
||||
* @return [Any] or null
|
||||
*/
|
||||
fun any() = cast<Any?>()
|
||||
|
||||
/**
|
||||
* 得到方法参数的实例对象 [Array] - 每项类型 [T]
|
||||
*
|
||||
|
Reference in New Issue
Block a user