Package net.neoforged.jst.api
Interface FileEntry
public interface FileEntry
-
Method Summary
Modifier and TypeMethodDescriptionbooleandefault booleanhasExtension(String extension) Path to the file or directory.
-
Method Details
-
directory
boolean directory()- Returns:
- True for directories.
-
relativePath
String relativePath()Path to the file or directory. Uses forward slashes as path-separators, and does not have a leading slash. -
lastModified
FileTime lastModified()- Returns:
- Millis since epoch denoting when the file was last modified. 0 for directories.
-
openInputStream
- Returns:
- An input stream to read this content.
- Throws:
IOException
-
hasExtension
-