toggle menu
Simple Robot
4.8.0
common
switch theme
search in API
simbot-common-core
/
love.forte.simbot.common.services
/
Services
/
addProvider
add
Provider
@
JvmStatic
fun
<
T
:
Any
>
addProvider
(
type
:
KClass
<
T
>
,
providerCreator
:
(
)
->
T
)
(
source
)
inline
fun
<
T
:
Any
>
addProvider
(
crossinline
providerCreator
:
(
)
->
T
)
(
source
)
添加一个用于获取
T
的函数。