public final class JavaPluginLoader extends Object implements PluginLoader
修飾子とタイプ | フィールドと説明 |
---|---|
static CustomTimingsHandler |
pluginParentTimer |
コンストラクタと説明 |
---|
JavaPluginLoader(Server instance)
非推奨です。
|
修飾子とタイプ | メソッドと説明 |
---|---|
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 |
disablePlugin(Plugin plugin)
Disables the specified plugin
Attempting to disable a plugin that is not enabled will have no effect
|
void |
enablePlugin(Plugin plugin)
Enables the specified plugin
Attempting to enable a plugin that is already enabled will have no
effect
|
PluginDescriptionFile |
getPluginDescription(File file)
Loads a PluginDescriptionFile from the specified file
|
Pattern[] |
getPluginFileFilters()
Returns a list of all filename filters expected by this PluginLoader
|
Plugin |
loadPlugin(File file)
Loads the plugin contained in the specified file
|
public static final CustomTimingsHandler pluginParentTimer
@Deprecated public JavaPluginLoader(Server instance)
instance
- the server instancepublic Plugin loadPlugin(File file) throws InvalidPluginException
PluginLoader
loadPlugin
インタフェース内 PluginLoader
file
- File to attempt to loadInvalidPluginException
- Thrown when the specified file is not a
pluginpublic PluginDescriptionFile getPluginDescription(File file) throws InvalidDescriptionException
PluginLoader
getPluginDescription
インタフェース内 PluginLoader
file
- File to attempt to load fromInvalidDescriptionException
- If the plugin description file
could not be createdpublic Pattern[] getPluginFileFilters()
PluginLoader
getPluginFileFilters
インタフェース内 PluginLoader
public Map<Class<? extends Event>,Set<RegisteredListener>> createRegisteredListeners(Listener listener, Plugin plugin)
PluginLoader
createRegisteredListeners
インタフェース内 PluginLoader
listener
- The object that will handle the eventual call backplugin
- The plugin to use when creating registered listenerspublic void enablePlugin(Plugin plugin)
PluginLoader
Attempting to enable a plugin that is already enabled will have no effect
enablePlugin
インタフェース内 PluginLoader
plugin
- Plugin to enablepublic void disablePlugin(Plugin plugin)
PluginLoader
Attempting to disable a plugin that is not enabled will have no effect
disablePlugin
インタフェース内 PluginLoader
plugin
- Plugin to disableCopyright © 2016. All rights reserved.