Package com.velocitypowered.api.plugin
Interface PluginContainer
-
public interface PluginContainer
A wrapper around a plugin loaded by the proxy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PluginDescription
getDescription()
Returns the plugin's description.ExecutorService
getExecutorService()
Returns an executor service for this plugin.default Optional<?>
getInstance()
Returns the created plugin if it is available.
-
-
-
Method Detail
-
getDescription
PluginDescription getDescription()
Returns the plugin's description.- Returns:
- the plugin's description
-
getInstance
default Optional<?> getInstance()
Returns the created plugin if it is available.- Returns:
- the instance if available
-
getExecutorService
ExecutorService getExecutorService()
Returns an executor service for this plugin. The executor will use a cached thread pool.- Returns:
- an
ExecutorService
associated with this plugin
-
-