Class HytaleManifestModel
java.lang.Object
net.janrupf.gradle.hytale.dev.extension.HytaleManifestModel
The manifest of a Hytale plugin.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA single author of a Hytale plugin.static classAn identifier for a Hytale plugin. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidauthor(org.gradle.api.Action<? super HytaleManifestModel.Author> action) Add an author to the Hytale plugin.voiddependency(String group, String name, String versionRange) Add a dependency to the Hytale plugin.voiddependency(HytaleManifestModel.Identifier id, String versionRange) Add a dependency to the Hytale plugin.voiddescription(String description) Change the description of the Hytale plugin.voiddisableByDefault(boolean disabled) Set whether this plugin is disabled by default.abstract org.gradle.api.provider.ListProperty<HytaleManifestModel.Author> The authors of the Hytale plugin.abstract org.gradle.api.provider.MapProperty<HytaleManifestModel.Identifier, String> The dependencies of the Hytale plugin.abstract org.gradle.api.provider.Property<String> The description of the Hytale plugin.abstract org.gradle.api.provider.Property<Boolean> Whether this plugin is disabled by default.abstract org.gradle.api.provider.Property<HytaleManifestModel.Identifier> The identifier of the Hytale plugin.abstract org.gradle.api.provider.Property<Boolean> Whether this plugin includes an asset pack.abstract org.gradle.api.provider.MapProperty<HytaleManifestModel.Identifier, String> Plugins which this plugin should be loaded before.abstract org.gradle.api.provider.Property<String> getMain()The main class of the Hytale plugin.abstract org.gradle.api.provider.MapProperty<HytaleManifestModel.Identifier, String> The optional dependencies of the Hytale plugin.abstract org.gradle.api.provider.Property<String> The version of the Hytale server this plugin is built for.abstract org.gradle.api.provider.Property<String> The version of the Hytale plugin.abstract org.gradle.api.provider.Property<String> The website of the Hytale plugin.voidChange the group of the Hytale plugin.voididentifier(String name, String group) Change the identifier of the Hytale plugin.voidincludesAssetPack(boolean includes) Set whether this plugin includes an asset pack.voidloadBefore(String group, String name, String versionRange) Specify that this plugin should be loaded before another plugin.voidloadBefore(HytaleManifestModel.Identifier id, String versionRange) Specify that this plugin should be loaded before another plugin.voidChange the main class of the Hytale plugin.voidChange the name of the Hytale plugin.voidoptionalDependency(String group, String name, String versionRange) Add an optional dependency to the Hytale plugin.voidoptionalDependency(HytaleManifestModel.Identifier id, String versionRange) Add an optional dependency to the Hytale plugin.voidserverVersion(String version) Change the server version this plugin is built for.toMap()Serialize the manifest to a map.voidChange the version of the Hytale plugin.voidChange the website of the Hytale plugin.
-
Constructor Details
-
HytaleManifestModel
@Inject public HytaleManifestModel(org.gradle.api.Project project)
-
-
Method Details
-
getIdentifier
The identifier of the Hytale plugin.- Returns:
- the identifier property
-
getVersion
The version of the Hytale plugin.- Returns:
- the version property
-
getDescription
The description of the Hytale plugin.- Returns:
- the description property
-
getAuthors
The authors of the Hytale plugin.- Returns:
- the list of authors
-
getWebsite
The website of the Hytale plugin.- Returns:
- the website property
-
getMain
The main class of the Hytale plugin.- Returns:
- the main class property
-
getServerVersion
The version of the Hytale server this plugin is built for.- Returns:
- the server version property
-
getDependencies
public abstract org.gradle.api.provider.MapProperty<HytaleManifestModel.Identifier, String> getDependencies()The dependencies of the Hytale plugin.Maps from plugin identifier to version requirement.
- Returns:
- the map of dependencies
-
getOptionalDependencies
public abstract org.gradle.api.provider.MapProperty<HytaleManifestModel.Identifier, String> getOptionalDependencies()The optional dependencies of the Hytale plugin.Maps from plugin identifier to version requirement.
- Returns:
- the map of optional dependencies
-
getLoadBefore
public abstract org.gradle.api.provider.MapProperty<HytaleManifestModel.Identifier, String> getLoadBefore()Plugins which this plugin should be loaded before.- Returns:
- the map of plugins which should load after this plugin
-
getDisabledByDefault
Whether this plugin is disabled by default.- Returns:
- the is disabled by default property
-
getIncludesAssetPack
Whether this plugin includes an asset pack.- Returns:
- the includes asset pack property
-
identifier
-
name
-
group
Change the group of the Hytale plugin.- Parameters:
group- the group
-
version
Change the version of the Hytale plugin.- Parameters:
version- the version
-
description
Change the description of the Hytale plugin.- Parameters:
description- the description
-
author
Add an author to the Hytale plugin.- Parameters:
action- the action to configure the author
-
website
Change the website of the Hytale plugin.- Parameters:
website- the website
-
main
Change the main class of the Hytale plugin.- Parameters:
mainClass- the main class
-
serverVersion
Change the server version this plugin is built for.- Parameters:
version- the server version
-
dependency
Add a dependency to the Hytale plugin.- Parameters:
id- the identifier of the dependencyversionRange- the version requirement of the dependency
-
dependency
-
optionalDependency
Add an optional dependency to the Hytale plugin.- Parameters:
id- the identifier of the optional dependencyversionRange- the version requirement of the optional dependency
-
optionalDependency
-
loadBefore
Specify that this plugin should be loaded before another plugin.- Parameters:
id- the identifier of the other pluginversionRange- the version requirement of the other plugin
-
loadBefore
-
disableByDefault
public void disableByDefault(boolean disabled) Set whether this plugin is disabled by default.- Parameters:
disabled- whether the plugin is disabled by default
-
includesAssetPack
public void includesAssetPack(boolean includes) Set whether this plugin includes an asset pack.- Parameters:
includes- whether the plugin includes an asset pack
-
toMap
-