Interface MinecraftExtensionForProject<T extends ClosureOwner<?>>

Type Parameters:
T - The type of closure owner used for dependency(java.lang.Object, groovy.lang.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

    NAME
  • Method Summary

    Modifier and Type
    Method
    Description
    default org.gradle.api.artifacts.ExternalModuleDependency
    Creates (or marks if existing) the given dependency as a Minecraft dependency.
    org.gradle.api.artifacts.ExternalModuleDependency
    dependency(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.ExternalModuleDependency
    dependency(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.
    default org.gradle.api.artifacts.ExternalModuleDependency
    dependency(org.gradle.api.provider.Provider<?> value)
    Creates (or marks if existing) the given dependency as a Minecraft dependency.
    default org.gradle.api.artifacts.ExternalModuleDependency
    dependency(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.artifacts.ExternalModuleDependency
    dependency(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.
    default org.gradle.api.artifacts.ExternalModuleDependency
    dependency(org.gradle.api.provider.ProviderConvertible<?> value)
    Creates (or marks if existing) the given dependency as a Minecraft dependency.
    default org.gradle.api.artifacts.ExternalModuleDependency
    dependency(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.artifacts.ExternalModuleDependency
    dependency(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.
    org.gradle.api.NamedDomainObjectContainer<? extends SlimeLauncherOptions>
    The collection of Slime Launcher options with which to create the launcher tasks.
    void
    runs(groovy.lang.Closure<?> closure)
    Configures the Slime Launcher options for this project, which will be used to create the launcher tasks.
    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.

    Methods inherited from interface net.minecraftforge.gradle.MinecraftExtension

    getAttributes, getMavenizer, mavenizer

    Methods 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
    • 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 dependency
      closure - 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 T> action)
      Creates (or marks if existing) the given dependency as a Minecraft dependency and applies the given action to it.
      Parameters:
      value - The dependency
      action - The action to apply to the dependency attributes
      Returns:
      The dependency
      See Also:
    • dependency

      default org.gradle.api.artifacts.ExternalModuleDependency dependency(Object value)
      Creates (or marks if existing) the given dependency as a Minecraft dependency.
      Parameters:
      value - The dependency
      Returns:
      The dependency
      See Also:
    • dependency

      default org.gradle.api.artifacts.ExternalModuleDependency dependency(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 dependency
      closure - The closure to configure the dependency with
      Returns:
      The dependency
      See Also:
    • dependency

      default org.gradle.api.artifacts.ExternalModuleDependency dependency(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 dependency
      action - The action to apply to the dependency attributes
      Returns:
      The dependency
      See Also:
    • dependency

      default org.gradle.api.artifacts.ExternalModuleDependency dependency(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:
    • dependency

      default org.gradle.api.artifacts.ExternalModuleDependency dependency(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 dependency
      closure - The closure to configure the dependency with
      Returns:
      The dependency
      See Also:
    • dependency

      default org.gradle.api.artifacts.ExternalModuleDependency dependency(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 dependency
      action - The action to apply to the dependency attributes
      Returns:
      The dependency
      See Also:
    • dependency

      default org.gradle.api.artifacts.ExternalModuleDependency dependency(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: