类 JavaPluginLoader
java.lang.Object
org.bukkit.plugin.java.JavaPluginLoader
- 所有已实现的接口:
PluginLoader
Represents a Java plugin loader, allowing plugins in the form of .jar
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Map<Class<? extends Event>,Set<RegisteredListener>> createRegisteredListeners(Listener listener, Plugin plugin) Creates and returns registered listeners for the event classes used in this listenervoiddisablePlugin(Plugin plugin) Disables the specified pluginvoidenablePlugin(Plugin plugin) Enables the specified plugingetPluginDescription(File file) Loads a PluginDescriptionFile from the specified filePattern[]Returns a list of all filename filters expected by this PluginLoaderloadPlugin(File file) Loads the plugin contained in the specified file
-
构造器详细资料
-
JavaPluginLoader
已过时。This class was not meant to be constructed explicitly- 参数:
instance- the server instance
-
-
方法详细资料
-
loadPlugin
从接口复制的说明:PluginLoaderLoads the plugin contained in the specified file- 指定者:
loadPlugin在接口中PluginLoader- 参数:
file- File to attempt to load- 返回:
- Plugin that was contained in the specified file, or null if unsuccessful
- 抛出:
InvalidPluginException- Thrown when the specified file is not a plugin
-
getPluginDescription
从接口复制的说明:PluginLoaderLoads a PluginDescriptionFile from the specified file- 指定者:
getPluginDescription在接口中PluginLoader- 参数:
file- File to attempt to load from- 返回:
- A new PluginDescriptionFile loaded from the plugin.yml in the specified file
- 抛出:
InvalidDescriptionException- If the plugin description file could not be created
-
getPluginFileFilters
从接口复制的说明:PluginLoaderReturns a list of all filename filters expected by this PluginLoader- 指定者:
getPluginFileFilters在接口中PluginLoader- 返回:
- The filters
-
createRegisteredListeners
public Map<Class<? extends Event>,Set<RegisteredListener>> createRegisteredListeners(Listener listener, Plugin plugin) 从接口复制的说明:PluginLoaderCreates and returns registered listeners for the event classes used in this listener- 指定者:
createRegisteredListeners在接口中PluginLoader- 参数:
listener- The object that will handle the eventual call backplugin- The plugin to use when creating registered listeners- 返回:
- The registered listeners.
-
enablePlugin
从接口复制的说明:PluginLoaderEnables the specified pluginAttempting to enable a plugin that is already enabled will have no effect
- 指定者:
enablePlugin在接口中PluginLoader- 参数:
plugin- Plugin to enable
-
disablePlugin
从接口复制的说明:PluginLoaderDisables the specified pluginAttempting to disable a plugin that is not enabled will have no effect
- 指定者:
disablePlugin在接口中PluginLoader- 参数:
plugin- Plugin to disable
-