This commit is contained in:
Him188 2020-09-20 14:31:27 +08:00
parent cea545d46b
commit 6912982949
2 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,7 @@ import net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl
import net.mamoe.mirai.console.plugin.loader.FilePluginLoader
/**
* 内建的 Jar (JVM) 插件加载器
* JVM 插件加载器
*/
public interface JvmPluginLoader : CoroutineScope, FilePluginLoader<JvmPlugin, JvmPluginDescription> {
/**

View File

@ -61,10 +61,9 @@ public interface PluginLoader<P : Plugin, D : PluginDescription> {
* @throws PluginLoadException 在加载插件遇到意料之中的错误时抛出 (如无法读取插件信息等).
*
* @see PluginDescription 插件描述
* @see getPluginDescription receiver, 接受参数的版本.
*/
@Throws(PluginLoadException::class)
public fun getPluginDescription(plugin: P): D // Java signature: `public D getDescription(P)`
public fun getPluginDescription(plugin: P): D
/**
* 主动加载一个插件 (实例), 但不 [启用][enable] . 返回加载成功的主类实例