Package org.spongepowered.api.plugin
Interface PluginManager
-
public interface PluginManager
The manager that managesplugins
.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MINECRAFT_PLUGIN_ID
static java.lang.String
SPONGE_PLUGIN_ID
-
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 aPluginContainer
based on its ID.java.util.Collection<org.spongepowered.plugin.PluginContainer>
plugins()
Gets aCollection
of allPluginContainer
s.
-
-
-
Field Detail
-
MINECRAFT_PLUGIN_ID
static final java.lang.String MINECRAFT_PLUGIN_ID
- See Also:
- Constant Field Values
-
SPONGE_PLUGIN_ID
static final java.lang.String SPONGE_PLUGIN_ID
- See Also:
- Constant Field Values
-
-
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 aPluginContainer
based on its ID.- Parameters:
id
- The plugin ID- Returns:
- The plugin, if available
-
plugins
java.util.Collection<org.spongepowered.plugin.PluginContainer> plugins()
Gets aCollection
of allPluginContainer
s.- Returns:
- The plugins
-
-