public interface PluginContainer
Plugin
annotation to retrieve
information from the annotation for easier use.Modifier and Type | Method and Description |
---|---|
default Optional<Asset> |
getAsset(String name)
|
default List<String> |
getAuthors()
Gets the authors of the
Plugin within this container. |
default Set<org.spongepowered.plugin.meta.PluginDependency> |
getDependencies()
|
default Optional<org.spongepowered.plugin.meta.PluginDependency> |
getDependency(String id)
Gets the
PluginDependency the plugin in this container has on
the plugin with the specified plugin ID. |
default Optional<String> |
getDescription()
Gets the description of the
Plugin within this container. |
String |
getId()
Gets the qualified ID of the
Plugin within this container. |
default Optional<?> |
getInstance()
Returns the created instance of
Plugin if it is available. |
default Logger |
getLogger()
Returns the assigned logger to this
Plugin . |
default String |
getName()
Gets the name of the
Plugin within this container. |
default Optional<Path> |
getSource()
Returns the source the plugin was loaded from.
|
default Optional<String> |
getUrl()
Gets the url or website of the
Plugin within this container. |
default Optional<String> |
getVersion()
Gets the version of the
Plugin within this container. |
String getId()
Plugin
within this container.Plugin.id()
default String getName()
Plugin
within this container.getId()
if unknownPlugin.name()
default Optional<String> getVersion()
Plugin
within this container.Optional.empty()
if unknownPlugin.version()
default Optional<String> getDescription()
Plugin
within this container.Optional.empty()
if unknownPlugin.description()
default Optional<String> getUrl()
Plugin
within this container.Optional.empty()
if unknownPlugin.url()
default List<String> getAuthors()
Plugin
within this container.Plugin.authors()
default Set<org.spongepowered.plugin.meta.PluginDependency> getDependencies()
Plugin.dependencies()
default Optional<org.spongepowered.plugin.meta.PluginDependency> getDependency(String id)
PluginDependency
the plugin in this container has on
the plugin with the specified plugin ID.id
- The plugin ID of the dependencyOptional.empty()
if unknowndefault Optional<Asset> getAsset(String name)
name
- Name of assetdefault Optional<Path> getSource()
Optional.empty()
if unknowndefault Optional<?> getInstance()
Plugin
if it is available.