Class DataFileCollection

java.lang.Object
net.neoforged.moddevgradle.dsl.DataFileCollection

public abstract class DataFileCollection extends Object
Holds data files (such as ATs) to be used or exposed.
  • Constructor Details

    • DataFileCollection

      public DataFileCollection()
  • Method Details

    • from

      public void from(Object... paths)
      Add the given paths to the file collection.

      Using this method replaces any previously present default value.

    • publish

      public void publish(Object... paths)
      Add the given paths to the published file collection.

      Using this method replaces any previously present default value.

    • getFiles

      public abstract org.gradle.api.file.ConfigurableFileCollection getFiles()
      Returns the files this collection contains.
      Returns:
      the files this collection contains
    • getPublished

      public abstract org.gradle.api.file.ConfigurableFileCollection getPublished()
      Returns the files that should be published and that can be consumed by dependents.
      Returns:
      the files that should be published and that can be consumed by dependents