Interface MinecraftExtensionForProject

All Superinterfaces:
MinecraftAccessTransformersContainer, MinecraftDependency, MinecraftExtension, MinecraftMappingsContainer

public interface MinecraftExtensionForProject extends MinecraftExtension, MinecraftDependency
Project-specific additions for the Minecraft extension. These will be accessible from the minecraft DSL object within your project's buildscript.
See Also:
  • 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 dependency
      closure - 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 dependency
      value - The dependency
      closure - 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 dependency
      action - 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 dependency
      value - The dependency
      action - The action to apply to the dependency attributes
      Returns:
      The dependency
      See Also:
    • dependency

      default MavenizerInstance 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 MavenizerInstance dependency(String name, Object value)
      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 dependency
      value - The dependency
      Returns:
      The dependency
      See Also:
    • getDependency

      default MavenizerInstance getDependency()
      Gets the default Minecraft dependency that was created using one of the dependency(Object, Closure) methods.
      Returns:
      The default Minecraft dependency
      Throws:
      NoSuchElementException - If the default Minecraft dependency has not yet been created.
      See Also:
    • getDependency

      MavenizerInstance getDependency(String name)
      Gets the named Minecraft dependency that was created using one of the dependency(Object, Closure) methods.
      Returns:
      The default Minecraft dependency
      Throws:
      NoSuchElementException - If the named Minecraft dependency has not yet been created.