public class MetadataSpigotExtension extends MetadataExtension
MetadataExtension.Dependency| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENSION_NAME |
| Constructor and Description |
|---|
MetadataSpigotExtension(Project project)
Creates a new extension for the given project.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(eu.hexagonmc.spigot.annotation.meta.PluginMetadata meta)
Applies this extension to an
PluginMetadata. |
void |
author(Object author)
Adds an author to this plugin.
|
List<String> |
authors()
Gets the authors of this plugin.
|
Boolean |
database()
Gets if this plugin uses database.
|
void |
database(Object database)
Sets if this plugin uses database.
|
eu.hexagonmc.spigot.annotation.meta.LoadOn |
load()
Gets the load stage set for this plugin.
|
void |
load(Object load)
Sets the load stage for this plugin.
|
String |
prefix()
Gets the logging prefix set for this plugin.
|
void |
prefix(Object prefix)
Sets the logging prefix for this plugin.
|
String |
website()
Gets the website set for this plugin.
|
void |
website(Object website)
Sets the website for this plugin.
|
dependencies, dependencies, dependency, dependency, dependency, description, description, getName, main, main, name, name, version, versionpublic static final String EXTENSION_NAME
public MetadataSpigotExtension(Project project)
project - The projectpublic void load(Object load)
load - The load stage to setLoadOnpublic eu.hexagonmc.spigot.annotation.meta.LoadOn load()
LoadOnpublic void author(Object author)
author - The author to addpublic List<String> authors()
Listpublic void website(Object website)
website - The website to setpublic String website()
public void database(Object database)
database - True if database is used false otherwisepublic Boolean database()
public void prefix(Object prefix)
prefix - The logging prefix to setpublic String prefix()
public void accept(eu.hexagonmc.spigot.annotation.meta.PluginMetadata meta)
PluginMetadata..accept in interface Consumer<eu.hexagonmc.spigot.annotation.meta.PluginMetadata>accept in class MetadataExtension