public interface PluginManager
PluginContainer
s from Plugin
instances, getting
Logger
s, etc.Modifier and Type | Field and Description |
---|---|
static String |
MINECRAFT_PLUGIN_ID |
static String |
SPONGE_PLUGIN_ID |
Modifier and Type | Method and Description |
---|---|
Optional<PluginContainer> |
fromInstance(Object instance)
Gets the plugin container from an instance.
|
Optional<PluginContainer> |
getPlugin(String id)
Retrieves a
PluginContainer based on its ID. |
Collection<PluginContainer> |
getPlugins()
Gets a
Collection of all PluginContainer s. |
boolean |
isLoaded(String id)
Checks if a plugin is loaded based on its ID.
|
static final String MINECRAFT_PLUGIN_ID
static final String SPONGE_PLUGIN_ID
Optional<PluginContainer> fromInstance(Object instance)
instance
- The instanceOptional<PluginContainer> getPlugin(String id)
PluginContainer
based on its ID.id
- The plugin IDCollection<PluginContainer> getPlugins()
Collection
of all PluginContainer
s.