Class SimpleModDependency

java.lang.Object
net.fabricmc.loom.configuration.mods.dependency.ModDependency
net.fabricmc.loom.configuration.mods.dependency.SimpleModDependency

public final class SimpleModDependency extends ModDependency
  • Constructor Details

    • SimpleModDependency

      public SimpleModDependency(ArtifactRef artifact, ArtifactMetadata metadata, ModDependencyOptions options, org.gradle.api.NamedDomainObjectProvider<? extends org.gradle.api.artifacts.Configuration> targetConfig, org.gradle.api.Project project)
  • Method Details

    • isCacheInvalid

      public boolean isCacheInvalid(org.gradle.api.Project project, @Nullable String variant)
      Description copied from class: ModDependency
      Returns true when the cache is invalid.
      Specified by:
      isCacheInvalid in class ModDependency
    • copyToCache

      public void copyToCache(org.gradle.api.Project project, Path path, @Nullable String variant) throws IOException
      Description copied from class: ModDependency
      Write an artifact to the local cache.
      Specified by:
      copyToCache in class ModDependency
      Throws:
      IOException
    • applyToProject

      public void applyToProject(org.gradle.api.Project project, RemappedModArtifacts artifacts)
      Description copied from class: ModDependency
      把本依赖注入目标配置.
      Specified by:
      applyToProject in class ModDependency
      Parameters:
      artifacts - 本批 remapped mod 产物各自的生产位置(见 RemappedModArtifacts); 产出方未必是本项目的任务,故不传任务实例而传「按路径查生产者」的解析器