JavaPluginLoaderpublic interface PluginLoader
| Modifier and Type | Method | Description | 
|---|---|---|
| @NotNull Map<Class<? extends Event>,Set<RegisteredListener>> | createRegisteredListeners(@NotNull Listener listener,
                         @NotNull Plugin plugin) | Creates and returns registered listeners for the event classes used in
 this listener | 
| void | disablePlugin(@NotNull Plugin plugin) | Disables the specified plugin | 
| void | enablePlugin(@NotNull Plugin plugin) | Enables the specified plugin | 
| @NotNull PluginDescriptionFile | getPluginDescription(@NotNull File file) | Loads a PluginDescriptionFile from the specified file | 
| @NotNull Pattern[] | getPluginFileFilters() | Returns a list of all filename filters expected by this PluginLoader | 
| @NotNull Plugin | loadPlugin(@NotNull File file) | Loads the plugin contained in the specified file | 
@NotNull @NotNull Plugin loadPlugin(@NotNull @NotNull File file) throws InvalidPluginException, UnknownDependencyException
file - File to attempt to loadInvalidPluginException - Thrown when the specified file is not a
     pluginUnknownDependencyException - If a required dependency could not
     be found@NotNull @NotNull PluginDescriptionFile getPluginDescription(@NotNull @NotNull File file) throws InvalidDescriptionException
file - File to attempt to load fromInvalidDescriptionException - If the plugin description file
     could not be created@NotNull @NotNull Pattern[] getPluginFileFilters()
@NotNull @NotNull Map<Class<? extends Event>,Set<RegisteredListener>> createRegisteredListeners(@NotNull @NotNull Listener listener, @NotNull @NotNull Plugin plugin)
listener - The object that will handle the eventual call backplugin - The plugin to use when creating registered listenersvoid enablePlugin(@NotNull
                  @NotNull Plugin plugin)
Attempting to enable a plugin that is already enabled will have no effect
plugin - Plugin to enablevoid disablePlugin(@NotNull
                   @NotNull Plugin plugin)
Attempting to disable a plugin that is not enabled will have no effect
plugin - Plugin to disableCopyright © 2020. All rights reserved.