simple-robot
3.0.0-RC.2
simbot-api
/
love.forte.simbot.event
/
Event
/
Key
/
Companion
/
getKey
get
Key
fun
<
E
:
Event
>
getKey
(
type
:
KClass
<
E
>
)
:
Event.Key
<
E
>
尝试通过一个
Event
的
KClass
来得到一个其对应的
Key
.
@
Api4J
fun
<
T
:
Event
>
getKey
(
type
:
Class
<
T
>
)
:
Event.Key
<
T
>
inline
fun
<
T
:
Event
>
getKey
(
)
:
Event.Key
<
T
>