toggle menu
Simple Robot
3.3.0
jvm
switch theme
search in API
simbot-api
/
love.forte.simbot.event
/
Event
/
Key
/
Companion
Companion
object
Companion
(
source
)
Members
Functions
get
Key
Link copied to clipboard
inline
fun
<
T
:
Event
>
getKey
(
)
:
Event.Key
<
T
>
@
Api4J
fun
<
T
:
Event
>
getKey
(
type
:
Class
<
T
>
)
:
Event.Key
<
T
>
fun
<
E
:
Event
>
getKey
(
type
:
KClass
<
E
>
)
:
Event.Key
<
E
>
尝试通过一个
Event
的
KClass
来得到一个其对应的
Key
.
is
Sub
Link copied to clipboard
@
JvmStatic
infix
fun
Event.Key
<
*
>
.
isSub
(
from
:
Event.Key
<
*
>
)
:
Boolean
检测当前接收器是否为
from
的子类型。