Interface PluginManager


  • public interface PluginManager
    The manager that manages plugins.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Optional<org.spongepowered.plugin.PluginContainer> fromInstance​(java.lang.Object instance)
      Gets the plugin container from an instance.
      java.util.Optional<org.spongepowered.plugin.PluginContainer> plugin​(java.lang.String id)
      Retrieves a PluginContainer based on its ID.
      java.util.Collection<org.spongepowered.plugin.PluginContainer> plugins()
      Gets a Collection of all PluginContainers.
    • Method Detail

      • fromInstance

        java.util.Optional<org.spongepowered.plugin.PluginContainer> fromInstance​(java.lang.Object instance)
        Gets the plugin container from an instance.
        Parameters:
        instance - The instance
        Returns:
        The container
      • plugin

        java.util.Optional<org.spongepowered.plugin.PluginContainer> plugin​(java.lang.String id)
        Retrieves a PluginContainer based on its ID.
        Parameters:
        id - The plugin ID
        Returns:
        The plugin, if available
      • plugins

        java.util.Collection<org.spongepowered.plugin.PluginContainer> plugins()
        Gets a Collection of all PluginContainers.
        Returns:
        The plugins