Simple Robot 组件 | KOOK
Toggle table of contents
4.1.2-SNAPSHOT
jvm
Platform filter
jvm
Switch theme
Search in API
Simple Robot 组件 | KOOK
simbot-component-kook-stdlib
/
love.forte.simbot.kook.stdlib
/
block
block
jvm
@
Api4J
fun
block
(
function
:
JBlockEventProcessor
)
:
EventProcessor
(
source
)
构建一个阻塞式的
EventProcessor
@
Api4J
fun
block
(
type
:
Event.Type
,
function
:
JBlockEventProcessor
)
:
EventProcessor
(
source
)
构建一个
Event.type
为
type
的阻塞式
EventProcessor
@
Api4J
fun
<
E
:
EventExtra
>
block
(
type
:
Class
<
E
>
,
function
:
TypedJBlockEventProcessor
<
E
>
)
:
EventProcessor
(
source
)
构建一个处理目标类型
E
的阻塞式
EventProcessor