Interface MinecraftExtensionForProject
- All Superinterfaces:
MinecraftAccessTransformersContainer, MinecraftDependency, MinecraftExtension, MinecraftMappingsContainer
Project-specific additions for the Minecraft extension. These will be accessible from the
minecraft DSL object within your project's buildscript.- See Also:
-
Field Summary
Fields inherited from interface MinecraftAccessTransformersContainer
DEFAULT_PATHFields inherited from interface MinecraftExtension
NAME -
Method Summary
Modifier and TypeMethodDescriptiondefault MavenizerInstancedependency(Object value) Creates (or marks if existing) the given dependency as a Minecraft dependency.default MavenizerInstancedependency(Object value, groovy.lang.Closure<?> closure) Creates (or marks if existing) the given dependency as a Minecraft dependency and configures it with the given closure.default MavenizerInstancedependency(Object value, org.gradle.api.Action<? super ClosureOwner.MinecraftDependency> action) Creates (or marks if existing) the given dependency as a Minecraft dependency and applies the given action to it.default MavenizerInstancedependency(String name, Object value) Creates (or marks if existing) the given dependency as a Minecraft dependency.dependency(String name, Object value, groovy.lang.Closure<?> closure) Creates (or marks if existing) the given dependency as a Minecraft dependency and configures it with the given closure.default MavenizerInstancedependency(String name, Object value, org.gradle.api.Action<? super ClosureOwner.MinecraftDependency> action) Creates (or marks if existing) the given dependency as a Minecraft dependency and applies the given action to it.default MavenizerInstanceGets the default Minecraft dependency that was created using one of thedependency(Object, Closure)methods.getDependency(String name) Gets the named Minecraft dependency that was created using one of thedependency(Object, Closure)methods.Methods inherited from interface MinecraftAccessTransformersContainer
getAccessTransformer, getAccessTransformers, setAccessTransformer, setAccessTransformer, useDefaultAccessTransformerMethods inherited from interface MinecraftDependency
getRuns, runs, runsMethods inherited from interface MinecraftExtension
getMavenizer, mavenizerMethods inherited from interface MinecraftMappingsContainer
getMappings, mappings, mappings
-
Method Details
-
dependency
default MavenizerInstance dependency(Object value, @DelegatesTo(org.gradle.api.artifacts.ExternalModuleDependency.class) groovy.lang.Closure<?> closure) Creates (or marks if existing) the given dependency as a Minecraft dependency and configures it with the given closure.- Parameters:
value- The dependencyclosure- The closure to configure the dependency with- Returns:
- The dependency
- See Also:
-
dependency
MavenizerInstance dependency(String name, Object value, @DelegatesTo(org.gradle.api.artifacts.ExternalModuleDependency.class) groovy.lang.Closure<?> closure) Creates (or marks if existing) the given dependency as a Minecraft dependency and configures it with the given closure.- Parameters:
name- The name to give the Mavenizer instance used to generate the dependencyvalue- The dependencyclosure- The closure to configure the dependency with- Returns:
- The dependency
- See Also:
-
dependency
default MavenizerInstance dependency(Object value, org.gradle.api.Action<? super ClosureOwner.MinecraftDependency> action) Creates (or marks if existing) the given dependency as a Minecraft dependency and applies the given action to it.- Parameters:
value- The dependencyaction- The action to apply to the dependency attributes- Returns:
- The dependency
- See Also:
-
dependency
default MavenizerInstance dependency(String name, Object value, org.gradle.api.Action<? super ClosureOwner.MinecraftDependency> action) Creates (or marks if existing) the given dependency as a Minecraft dependency and applies the given action to it.- Parameters:
name- The name to give the Mavenizer instance used to generate the dependencyvalue- The dependencyaction- The action to apply to the dependency attributes- Returns:
- The dependency
- See Also:
-
dependency
Creates (or marks if existing) the given dependency as a Minecraft dependency.- Parameters:
value- The dependency- Returns:
- The dependency
- See Also:
-
dependency
Creates (or marks if existing) the given dependency as a Minecraft dependency.- Parameters:
name- The name to give the Mavenizer instance used to generate the dependencyvalue- The dependency- Returns:
- The dependency
- See Also:
-
getDependency
Gets the default Minecraft dependency that was created using one of thedependency(Object, Closure)methods.- Returns:
- The default Minecraft dependency
- Throws:
NoSuchElementException- If the default Minecraft dependency has not yet been created.- See Also:
-
getDependency
Gets the named Minecraft dependency that was created using one of thedependency(Object, Closure)methods.- Returns:
- The default Minecraft dependency
- Throws:
NoSuchElementException- If the named Minecraft dependency has not yet been created.
-