Class Fnt.Folder

java.lang.Object
io.github.turtleisaac.nds4j.Fnt.Folder
Enclosing class:
Fnt

public static class Fnt.Folder extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getFiles

      public ArrayList<String> getFiles()
    • getFolders

      public HashMap<String,Fnt.Folder> getFolders()
    • getFirstId

      public int getFirstId()
    • getIdOf

      public int getIdOf(String name)
      Find the file ID for the given filename, or for the given file path (using "/" as the separator) relative to this folder.
      Parameters:
      name - a String representing the path to the file
      Returns:
      an int representing the file ID of the specified file, or -1 if not found
    • getSubfolder

      public Fnt.Folder getSubfolder(String path)
      Find the Folder instance for the given subfolder name, or for the given folder path (using "/" as the separator) relative to this folder.
      Parameters:
      path - a String representing the path to the subfolder
      Returns:
      a Folder representing the found subfolder, or null if not found
    • getFilenameOf

      public String getFilenameOf(int id)
      Find the filename of the file with the given ID. If it exists in a subfolder, the filename will be returned as a path separated by "/"s.
      Parameters:
      id - an int representing the file ID
      Returns:
      a String containing the path to the given file, or null if not found
    • toStringList

      public String[] toStringList(int indent)
      Return a String containing all file positions relative to this Folder, indented based on subfolder
      Parameters:
      indent - an int specifying the base indent
      Returns:
      a String[] containing the output
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object