public interface PluginResourceLoader
| 限定符和类型 | 方法和说明 |
|---|---|
String |
key()
加载者的key
|
ResourceWrapper |
load(BasePlugin basePlugin)
加载资源
|
OrderPriority |
order()
执行顺序
|
void |
unload(BasePlugin basePlugin,
ResourceWrapper resourceWrapper)
卸载时的操作
|
String key()
ResourceWrapper load(BasePlugin basePlugin) throws Exception
basePlugin - 插件对象Exception - Exceptionvoid unload(BasePlugin basePlugin, ResourceWrapper resourceWrapper) throws Exception
basePlugin - 插件对象resourceWrapper - 资源包装者Exception - 卸载异常OrderPriority order()
Copyright © 2019. All rights reserved.