Package org.spongepowered.api.plugin
Interface PluginManager
public interface PluginManager
The manager that manages
plugins
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionOptional<org.spongepowered.plugin.PluginContainer>
fromInstance
(Object instance) Gets the plugin container from an instance.Optional<org.spongepowered.plugin.PluginContainer>
Retrieves aPluginContainer
based on its ID.Collection<org.spongepowered.plugin.PluginContainer>
plugins()
Gets aCollection
of allPluginContainer
s.
-
Field Details
-
MINECRAFT_PLUGIN_ID
- See Also:
-
SPONGE_PLUGIN_ID
- See Also:
-
-
Method Details
-
fromInstance
Gets the plugin container from an instance.- Parameters:
instance
- The instance- Returns:
- The container
-
plugin
Retrieves aPluginContainer
based on its ID.- Parameters:
id
- The plugin ID- Returns:
- The plugin, if available
-
plugins
Collection<org.spongepowered.plugin.PluginContainer> plugins()Gets aCollection
of allPluginContainer
s.- Returns:
- The plugins
-