toggle menu
Simple Robot
3.3.0
jvm
switch theme
search in API
simbot-api
/
love.forte.simbot.event
/
Event
/
Key
/
Companion
/
getKey
get
Key
fun
<
E
:
Event
>
getKey
(
type
:
KClass
<
E
>
)
:
Event.Key
<
E
>
(
source
)
尝试通过一个
Event
的
KClass
来得到一个其对应的
Key
.
@
Api4J
fun
<
T
:
Event
>
getKey
(
type
:
Class
<
T
>
)
:
Event.Key
<
T
>
(
source
)
inline
fun
<
T
:
Event
>
getKey
(
)
:
Event.Key
<
T
>
(
source
)