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.
An
FunctionalInterface
similar to the FileFilter
one,
but it also offers getDescription()
that returns Text
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final TFileFilter
ATFileFilter
that does not filter out any files. -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable net.minecraft.text.Text
Returns a user-friendly descriptiveText
for thisTFileFilter
, describing the files it filters.Methods inherited from interface java.io.FileFilter
accept
-
Field Details
-
ALL_FILES
ATFileFilter
that does not filter out any files.Returns
true
if theFile
being tested is notnull
.
-
-
Method Details
-
getDescription
@Nullable default @Nullable net.minecraft.text.Text getDescription()Returns a user-friendly descriptiveText
for thisTFileFilter
, describing the files it filters.Example: "Image files (.png, .jpg, ...)"
-