Interface IPlugin
- All Known Implementing Classes:
UltiToolsPlugin
public interface IPlugin
Plugin interface.
插件接口
-
Method Summary
Modifier and TypeMethodDescriptionbooleanUltiTools will call this method when instantiating the main body of the plugin, similar toJavaPlugin.onEnable()
UltiTools主体实例化插件时会调用此方法,类比JavaPlugin.onEnable()voidUltiTools will call this method when reloading this plugin module, similar toJavaPlugin.onDisable()andJavaPlugin.onEnable()
重载此插件模块时调用的方法,此重载并非重启模块,不会调用registerSelf()和unregisterSelf()。voidUltiTools will call this method when unregistering this plugin module, similar toJavaPlugin.onDisable()
卸载此插件模块时调用的方法,类比JavaPlugin.onDisable()
-
Method Details
-
registerSelf
UltiTools will call this method when instantiating the main body of the plugin, similar toJavaPlugin.onEnable()
UltiTools主体实例化插件时会调用此方法,类比JavaPlugin.onEnable()- Returns:
- Whether the registration is successful
是否注册成功 - Throws:
IOException- IOException
IO异常
-
unregisterSelf
void unregisterSelf()UltiTools will call this method when unregistering this plugin module, similar toJavaPlugin.onDisable()
卸载此插件模块时调用的方法,类比JavaPlugin.onDisable() -
reloadSelf
void reloadSelf()UltiTools will call this method when reloading this plugin module, similar toJavaPlugin.onDisable()andJavaPlugin.onEnable()
重载此插件模块时调用的方法,此重载并非重启模块,不会调用registerSelf()和unregisterSelf()。
-