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

      @Inject public DataFileCollection(Consumer<Object> publishArtifactCallback)
  • Method Details

    • from

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

      Please note that src/main/resources/META-INF/accesstransformer.cfg is automatically included for access transformers, if it exists.

    • publish

      public void publish(Object artifactNotation)
      Configures the given files to be published alongside this project. This can include files that are also passed to from(java.lang.Object...), but is not required to. For allowed parameters, see ArtifactHandler.
    • getFiles

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