Package org.spongepowered.api.plugin
Interface PluginManager
-
public interface PluginManager
The manager that managesplugins
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
MINECRAFT_PLUGIN_ID
static String
SPONGE_PLUGIN_ID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<org.spongepowered.plugin.PluginContainer>
fromInstance(Object instance)
Gets the plugin container from an instance.Optional<org.spongepowered.plugin.PluginContainer>
plugin(String id)
Retrieves aPluginContainer
based on its ID.Collection<org.spongepowered.plugin.PluginContainer>
plugins()
Gets aCollection
of allPluginContainer
s.
-
-
-
Field Detail
-
MINECRAFT_PLUGIN_ID
static final String MINECRAFT_PLUGIN_ID
- See Also:
- Constant Field Values
-
SPONGE_PLUGIN_ID
static final String SPONGE_PLUGIN_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromInstance
Optional<org.spongepowered.plugin.PluginContainer> fromInstance(Object instance)
Gets the plugin container from an instance.- Parameters:
instance
- The instance- Returns:
- The container
-
plugin
Optional<org.spongepowered.plugin.PluginContainer> plugin(String id)
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
-
-