Interface PaperExtension
- All Known Implementing Classes:
PaperExtensionImpl
public interface PaperExtension
A paper plugin description configurable interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddDependencies(boolean optional, String... pluginNames) Adds dependencies to load before this plugin.default voidaddDependencies(String... pluginNames) Adds dependencies to load before this plugin.default voidaddDependency(String pluginName) Adds a dependency to load before this plugin.default voidaddDependency(String pluginName, boolean optional) Adds a dependency to load before this plugin.org.gradle.api.provider.Property<String> The API version which this plugin is designed to support.default voidapiVersion(String apiVersion) Sets the API version.org.gradle.api.provider.SetProperty<String> authors()The authors of the plugin.default voidSets the authors of the plugin.org.gradle.api.provider.SetProperty<Dependency> The dependencies required to load before this plugin.org.gradle.api.provider.Property<String> The description of the plugin.default voiddescription(String description) Sets the description of the plugin.org.gradle.api.provider.Property<LoadOrder> load()The phase of server-startup this plugin will load during.default voidSets the plugin's load order.org.gradle.api.provider.Property<String> main()The plugin's initial class file.default voidSets the plugin's initial class file.org.gradle.api.provider.Property<String> name()The name of the plugin.default voidSets the name of the plugin.org.gradle.api.provider.Property<String> version()The version of the plugin.default voidSets the version of the plugin.
-
Method Details
-
main
The plugin's initial class file. This main can't start with minecraft packages or derivative.- Returns:
- a property providing the plugin's initial class file
-
main
Sets the plugin's initial class file.- Parameters:
main- the plugin's initial class file
-
name
The name of the plugin. This name should be unique as to not conflict with other plugins. The plugin name may contain alphanumeric characters, dashes, and underscores.- Returns:
- a property providing the name for this plugin
-
name
Sets the name of the plugin.- Parameters:
name- the name of the plugin
-
version
The version of the plugin. If not set, the version will be set to project's version.- Returns:
- a property providing the version of the plugin
-
version
Sets the version of the plugin.- Parameters:
version- the version of the plugin
-
description
The description of the plugin. If not set, the description will be set to project's description.- Returns:
- a property providing the description of the plugin
-
description
Sets the description of the plugin.- Parameters:
description- the description of the plugin
-
authors
The authors of the plugin.- Returns:
- a property providing the author of the plugin
-
authors
Sets the authors of the plugin.- Parameters:
authors- the authors of the plugin
-
load
The phase of server-startup this plugin will load during.- Returns:
- a property providing the plugin's load order
-
load
Sets the plugin's load order.- Parameters:
loadOrder- the plugin's load order
-
dependencies
The dependencies required to load before this plugin.- Returns:
- a property providing the plugin dependencies
-
addDependency
Adds a dependency to load before this plugin.By default this dependency is not optional, it will be a hard-dependency. If you want to add a soft-dependency, use other
addDependencymethod.- Parameters:
pluginName- the plugin name of the dependency
-
addDependency
Adds a dependency to load before this plugin.- Parameters:
pluginName- the plugin name of the dependencyoptional- whether the dependency is not required to enable this plugin
-
addDependencies
Adds dependencies to load before this plugin.By default these dependencies are not optional, it will be hard-dependencies. If you want to add soft-dependencies, use other
addDependenciesmethod.- Parameters:
pluginNames- the plugin name of the dependencies
-
addDependencies
Adds dependencies to load before this plugin.- Parameters:
optional- whether the dependencies are not required to enable this pluginpluginNames- the plugin name of the dependencies
-
apiVersion
The API version which this plugin is designed to support.- Returns:
- a property providing the api version
-
apiVersion
Sets the API version.- Parameters:
apiVersion- the API version
-