Interface PluginContainer


public interface PluginContainer
A wrapper around a loaded plugin instance.
  • Method Details

    • getDescription

      @Nonnull PluginDescription getDescription()
      Get the plugin's description.
      Returns:
      the plugin description
    • getInstance

      @Nonnull Optional<Object> getInstance()
      Get the plugin instance.
      Returns:
      the plugin instance, or empty if the plugin has no main class
    • getDataDirectory

      @Nonnull Path getDataDirectory()
      Get the plugin's data directory. This is where the plugin should store configuration and data files.
      Returns:
      the data directory