Class FileEntries

java.lang.Object
net.neoforged.jst.api.FileEntries

public final class FileEntries extends Object
  • Method Details

    • ofPath

      public static FileEntry ofPath(Path sourceRoot, Path path)
      Creates a file entry for a given NIO path. Since file entries need to know their path relative to the source root, the source root has to be given as an additional parameter.
    • ofZipEntry

      public static FileEntry ofZipEntry(ZipFile zipFile, ZipEntry zipEntry)
      Creates a file entry for an existing zip entry. Will source the content from the given zip file.