mirai
2.16.0
common
mirai-core-api
/
net.mamoe.mirai.event
/
EventChannel
/
filterIsInstance
filter
Is
Instance
inline
fun
<
E
:
Event
>
filterIsInstance
(
)
:
EventChannel
<
E
>
fun
<
E
:
Event
>
filterIsInstance
(
kClass
:
KClass
<
out
E
>
)
:
EventChannel
<
E
>
fun
<
E
:
Event
>
filterIsInstance
(
clazz
:
<Error class: unknown class>
<
out
E
>
)
:
EventChannel
<
E
>
过滤事件的类型. 返回一个只包含
E
类型事件的
EventChannel
See also
Event
Channel.
filter
获取更多信息