Package net.neoforged.fml.util
Class PathPrettyPrinting
java.lang.Object
net.neoforged.fml.util.PathPrettyPrinting
Helper for pretty-printing paths for end-users.
Aims to shorten paths by substituting well-known locations and relativizing to the game directory, for example.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator<PathPrettyPrinting.PathSubstitution> Try long prefixes before short prefixes.private static List<PathPrettyPrinting.PathSubstitution> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidaddSubstitution(Path root, String prefix, String suffix) static StringprettyPrint(Path path)
-
Field Details
-
SUBSTITUTION_COMPARATOR
Try long prefixes before short prefixes. -
SUBSTITUTIONS
-
-
Constructor Details
-
PathPrettyPrinting
private PathPrettyPrinting()
-
-
Method Details
-
addRoot
-
addSubstitution
-
prettyPrint
-