![]() |
Bukkit
1.4.7-R1.0
|
Represents a plugin loader, which handles direct access to specific types of plugins. More...
Inheritance diagram for org.bukkit.plugin.PluginLoader:Public Member Functions | |
| Plugin | loadPlugin (File file) throws InvalidPluginException, UnknownDependencyException |
| Loads the plugin contained in the specified file. | |
| PluginDescriptionFile | getPluginDescription (File file) throws InvalidDescriptionException |
| Loads a PluginDescriptionFile from the specified file. | |
| Pattern[] | getPluginFileFilters () |
| Returns a list of all filename filters expected by this PluginLoader. | |
| Map< Class<?extends Event > , Set< RegisteredListener > > | createRegisteredListeners (Listener listener, Plugin plugin) |
| Creates and returns registered listeners for the event classes used in this listener. | |
| void | enablePlugin (Plugin plugin) |
| Enables the specified plugin. | |
| void | disablePlugin (Plugin plugin) |
| Disables the specified plugin. | |
Represents a plugin loader, which handles direct access to specific types of plugins.
Definition at line 15 of file PluginLoader.java.
| Map<Class<? extends Event>, Set<RegisteredListener> > org.bukkit.plugin.PluginLoader.createRegisteredListeners | ( | Listener | listener, |
| Plugin | plugin | ||
| ) |
Creates and returns registered listeners for the event classes used in this listener.
| listener | The object that will handle the eventual call back |
| plugin | The plugin to use when creating registered listeners |
Referenced by org.bukkit.plugin.SimplePluginManager.registerEvents().
| void org.bukkit.plugin.PluginLoader.disablePlugin | ( | Plugin | plugin | ) |
Disables the specified plugin.
Attempting to disable a plugin that is not enabled will have no effect
| plugin | Plugin to disable |
Referenced by org.bukkit.plugin.SimplePluginManager.disablePlugin().
| void org.bukkit.plugin.PluginLoader.enablePlugin | ( | Plugin | plugin | ) |
Enables the specified plugin.
Attempting to enable a plugin that is already enabled will have no effect
| plugin | Plugin to enable |
Referenced by org.bukkit.plugin.SimplePluginManager.enablePlugin().
| PluginDescriptionFile org.bukkit.plugin.PluginLoader.getPluginDescription | ( | File | file | ) | throws InvalidDescriptionException |
Loads a PluginDescriptionFile from the specified file.
| file | File to attempt to load from |
| InvalidDescriptionException | If the plugin description file could not be created |
Referenced by org.bukkit.plugin.SimplePluginManager.loadPlugins().
| Pattern [] org.bukkit.plugin.PluginLoader.getPluginFileFilters | ( | ) |
Returns a list of all filename filters expected by this PluginLoader.
Referenced by org.bukkit.plugin.SimplePluginManager.registerInterface().
| Plugin org.bukkit.plugin.PluginLoader.loadPlugin | ( | File | file | ) | throws InvalidPluginException, UnknownDependencyException |
Loads the plugin contained in the specified file.
| file | File to attempt to load |
| InvalidPluginException | Thrown when the specified file is not a plugin |
| UnknownDependencyException | If a required dependency could not be found |
Referenced by org.bukkit.plugin.SimplePluginManager.loadPlugin().