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 Provider<ExternalModuleDependency> Creates (or marks if existing) the given dependency as a Minecraft dependency.Creates (or marks if existing) the given dependency as a Minecraft dependency and configures it with the given closure.default Provider<ExternalModuleDependency> Creates (or marks if existing) the given dependency as a Minecraft dependency and applies the given action to it.default Provider<ExternalModuleDependency> Creates (or marks if existing) the given dependency as a Minecraft dependency.default Provider<ExternalModuleDependency> Creates (or marks if existing) the given dependency as a Minecraft dependency and configures it with the given closure.default Provider<ExternalModuleDependency> Creates (or marks if existing) the given dependency as a Minecraft dependency and applies the given action to it.default Provider<ExternalModuleDependency> dep(ProviderConvertible<?> value) Creates (or marks if existing) the given dependency as a Minecraft dependency.default Provider<ExternalModuleDependency> dep(ProviderConvertible<?> value, Closure<?> closure) Creates (or marks if existing) the given dependency as a Minecraft dependency and configures it with the given closure.default Provider<ExternalModuleDependency> dep(ProviderConvertible<?> value, Action<? super T> action) Creates (or marks if existing) the given dependency as a Minecraft dependency and applies the given action to it.NamedDomainObjectContainer<? extends SlimeLauncherOptions> getRuns()The collection of Slime Launcher options with which to create the launcher tasks.voidConfigures the Slime Launcher options for this project, which will be used to create the launcher tasks.default voidruns(Action<? super 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
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
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(Action<? super 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
Provider<ExternalModuleDependency> dep(Object value, @DelegatesTo(ExternalModuleDependency.class) 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
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
Creates (or marks if existing) the given dependency as a Minecraft dependency.- Parameters:
value- The dependency- Returns:
- The dependency
- See Also:
-
dep
default Provider<ExternalModuleDependency> dep(Provider<?> value, @DelegatesTo(ExternalModuleDependency.class) 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
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
Creates (or marks if existing) the given dependency as a Minecraft dependency.- Parameters:
value- The dependency- Returns:
- The dependency
- See Also:
-
dep
default Provider<ExternalModuleDependency> dep(ProviderConvertible<?> value, @DelegatesTo(ExternalModuleDependency.class) 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 Provider<ExternalModuleDependency> dep(ProviderConvertible<?> value, 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
Creates (or marks if existing) the given dependency as a Minecraft dependency.- Parameters:
value- The dependency- Returns:
- The dependency
- See Also:
-