Interface IPlugin

All Known Implementing Classes:
UltiToolsPlugin

public interface IPlugin
Plugin interface.

插件接口

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    UltiTools will call this method when instantiating the main body of the plugin, similar to JavaPlugin.onEnable()
    UltiTools主体实例化插件时会调用此方法,类比JavaPlugin.onEnable()
    void
    UltiTools will call this method when reloading this plugin module, similar to JavaPlugin.onDisable() and JavaPlugin.onEnable()
    重载此插件模块时调用的方法,此重载并非重启模块,不会调用registerSelf()unregisterSelf()
    void
    UltiTools will call this method when unregistering this plugin module, similar to JavaPlugin.onDisable()
    卸载此插件模块时调用的方法,类比JavaPlugin.onDisable()
  • Method Details

    • registerSelf

      boolean registerSelf() throws IOException
      UltiTools will call this method when instantiating the main body of the plugin, similar to JavaPlugin.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 to JavaPlugin.onDisable()
      卸载此插件模块时调用的方法,类比JavaPlugin.onDisable()
    • reloadSelf

      void reloadSelf()
      UltiTools will call this method when reloading this plugin module, similar to JavaPlugin.onDisable() and JavaPlugin.onEnable()
      重载此插件模块时调用的方法,此重载并非重启模块,不会调用registerSelf()unregisterSelf()