Interface TFileFilter

All Superinterfaces:
FileFilter
All Known Implementing Classes:
TExtensionFileFilter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TFileFilter extends FileFilter
An FunctionalInterface similar to the FileFilter one, but it also offers getDescription() that returns Text.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TFileFilter
    A TFileFilter that does not filter out any files.
  • Method Summary

    Modifier and Type
    Method
    Description
    default @Nullable net.minecraft.text.Text
    Returns a user-friendly descriptive Text for this TFileFilter, describing the files it filters.

    Methods inherited from interface java.io.FileFilter

    accept
  • Field Details

    • ALL_FILES

      static final TFileFilter ALL_FILES
      A TFileFilter that does not filter out any files.

      Returns true if the File being tested is not null.

  • Method Details

    • getDescription

      @Nullable default @Nullable net.minecraft.text.Text getDescription()
      Returns a user-friendly descriptive Text for this TFileFilter, describing the files it filters.

      Example: "Image files (.png, .jpg, ...)"