public class MetadataExtension extends Object implements Consumer<eu.hexagonmc.spigot.annotation.meta.PluginMetadata>
| Modifier and Type | Class and Description |
|---|---|
static class |
MetadataExtension.Dependency |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(eu.hexagonmc.spigot.annotation.meta.PluginMetadata meta)
Applies this extension to an
PluginMetadata. |
Set<MetadataExtension.Dependency> |
dependencies()
Gets the dependencies set for this plugin.
|
void |
dependencies(groovy.lang.Closure<?> closure)
Sets the dependencies of this plugin.
|
void |
dependency(String name)
Adds a dependency to this plugin.
|
void |
dependency(String name,
groovy.lang.Closure<?> closure)
Adds a dependency to this plugin.
|
void |
dependency(String name,
String type)
Adds a dependency to this plugin.
|
String |
description()
Gets the description set for this plugin.
|
void |
description(Object description)
Sets the description of this plugin.
|
String |
getName()
Gets the name set for this plugin.
|
String |
main()
Gets the main class set for this plugin.
|
void |
main(Object main)
Sets the main class of this plugin.
|
String |
name()
Gets the name set for this plugin.
|
void |
name(Object name)
Sets the name of this plugin.
|
String |
version()
Gets the version set for this plugin.
|
void |
version(Object version)
Sets the version of this plugin.
|
public void main(Object main)
main - The main class to setpublic String main()
public void name(Object name)
name - The name to setpublic String name()
public String getName()
public void version(Object version)
version - The version to setpublic String version()
public void description(Object description)
description - The description to setpublic String description()
public void dependencies(groovy.lang.Closure<?> closure)
Closure.closure - The Closure with dependenciespublic Set<MetadataExtension.Dependency> dependencies()
public void dependency(String name)
name - The name of the dependencypublic void dependency(String name, String type)
name - The name of the dependencytype - The type of the dependencypublic void dependency(String name, groovy.lang.Closure<?> closure)
Closure.name - The name of the dependencyclosure - The Closure of the dependency