Interface MinecraftExtensionForProject<T extends ClosureOwner<?>>
- Type Parameters:
T- The type of closure owner used fordep(Object, Closure)
- All Superinterfaces:
MinecraftExtension,MinecraftMappingsContainer
- All Known Subinterfaces:
MinecraftExtensionForProjectWithAccessTransformers
public sealed interface MinecraftExtensionForProject<T extends ClosureOwner<?>>
extends MinecraftExtension
permits MinecraftExtensionForProjectWithAccessTransformers (not exhaustive)
Project-specific additions for the Minecraft extension. These will be accessible from the
minecraft DSL object within your project's buildscript.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraftforge.gradle.MinecraftExtension
MinecraftExtension.Attributes -
Field Summary
Fields inherited from interface net.minecraftforge.gradle.MinecraftExtension
attributes, NAME -
Method Summary
Modifier and TypeMethodDescriptiondefault org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> Creates (or marks if existing) the given dependency as a Minecraft dependency.org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> Creates (or marks if existing) the given dependency as a Minecraft dependency and configures it with the given closure.default org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> Creates (or marks if existing) the given dependency as a Minecraft dependency and applies the given action to it.default org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> dep(org.gradle.api.provider.Provider<?> value) Creates (or marks if existing) the given dependency as a Minecraft dependency.default org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> dep(org.gradle.api.provider.Provider<?> 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.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> Creates (or marks if existing) the given dependency as a Minecraft dependency and applies the given action to it.default org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> dep(org.gradle.api.provider.ProviderConvertible<?> value) Creates (or marks if existing) the given dependency as a Minecraft dependency.default org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> dep(org.gradle.api.provider.ProviderConvertible<?> 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.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> Creates (or marks if existing) the given dependency as a Minecraft dependency and applies the given action to it.org.gradle.api.NamedDomainObjectContainer<? extends SlimeLauncherOptions> getRuns()The collection of Slime Launcher options with which to create the launcher tasks.voidruns(groovy.lang.Closure<?> closure) Configures the Slime Launcher options for this project, which will be used to create the launcher tasks.default voidruns(org.gradle.api.Action<? super org.gradle.api.NamedDomainObjectContainer<? extends SlimeLauncherOptions>> action) Configures the Slime Launcher options for this project, which will be used to create the launcher tasks.Methods inherited from interface net.minecraftforge.gradle.MinecraftExtension
getMaven, mavenMethods inherited from interface net.minecraftforge.gradle.MinecraftMappingsContainer
getMappings, mappings, mappings
-
Method Details
-
getRuns
org.gradle.api.NamedDomainObjectContainer<? extends SlimeLauncherOptions> getRuns()The collection of Slime Launcher options with which to create the launcher tasks.- Returns:
- The collection of run task options
-
runs
void runs(@DelegatesTo(org.gradle.api.NamedDomainObjectContainer.class) groovy.lang.Closure<?> closure) Configures the Slime Launcher options for this project, which will be used to create the launcher tasks.- Parameters:
closure- The configuring closure
-
runs
default void runs(org.gradle.api.Action<? super org.gradle.api.NamedDomainObjectContainer<? extends SlimeLauncherOptions>> action) Configures the Slime Launcher options for this project, which will be used to create the launcher tasks.- Parameters:
action- The configuring action
-
dep
org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> dep(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:
-
dep
default org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> dep(Object value, org.gradle.api.Action<? super T> 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:
-
dep
default org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> dep(Object value) Creates (or marks if existing) the given dependency as a Minecraft dependency.- Parameters:
value- The dependency- Returns:
- The dependency
- See Also:
-
dep
default org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> dep(org.gradle.api.provider.Provider<?> 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:
-
dep
default org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> dep(org.gradle.api.provider.Provider<?> value, org.gradle.api.Action<? super T> 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:
-
dep
default org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> dep(org.gradle.api.provider.Provider<?> value) Creates (or marks if existing) the given dependency as a Minecraft dependency.- Parameters:
value- The dependency- Returns:
- The dependency
- See Also:
-
dep
default org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> dep(org.gradle.api.provider.ProviderConvertible<?> 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:
-
dep
default org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> dep(org.gradle.api.provider.ProviderConvertible<?> value, org.gradle.api.Action<? super T> 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:
-
dep
default org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> dep(org.gradle.api.provider.ProviderConvertible<?> value) Creates (or marks if existing) the given dependency as a Minecraft dependency.- Parameters:
value- The dependency- Returns:
- The dependency
- See Also:
-