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 org.gradle.api.artifacts.ExternalModuleDependencydependency(Object value) Creates (or marks if existing) the given dependency as a Minecraft dependency.org.gradle.api.artifacts.ExternalModuleDependencydependency(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 org.gradle.api.artifacts.ExternalModuleDependencydependency(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.Methods inherited from interface MinecraftAccessTransformersContainer
getAccessTransformer, setAccessTransformer, setAccessTransformerMethods inherited from interface MinecraftDependency
getRuns, runs, runsMethods inherited from interface MinecraftExtension
getMavenizer, mavenizerMethods inherited from interface MinecraftMappingsContainer
getMappings, mappings, mappings
-
Method Details
-
dependency
org.gradle.api.artifacts.ExternalModuleDependency 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
default org.gradle.api.artifacts.ExternalModuleDependency 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
Creates (or marks if existing) the given dependency as a Minecraft dependency.- Parameters:
value- The dependency- Returns:
- The dependency
- See Also:
-