Package net.neoforged.fml.util
Class ClasspathResourceUtils
java.lang.Object
net.neoforged.fml.util.ClasspathResourceUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable PathfindFileSystemRootOfFileOnClasspath(ClassLoader classLoader, String relativePath) static PathfindFileSystemRootOfFileOnClasspath(String relativePath) findFileSystemRootsOfFileOnClasspath(ClassLoader classLoader, String relativePath) findFileSystemRootsOfFileOnClasspath(String relativePath) static PathfindJarPathFor(String resourceName, String jarName, URL resource) getAllClasspathItems(ClassLoader loader) static PathgetRootFromResourceUrl(String relativePath, URL resourceUrl)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
ClasspathResourceUtils
private ClasspathResourceUtils()
-
-
Method Details
-
findFileSystemRootsOfFileOnClasspath
-
findJarPathFor
-
getRootFromResourceUrl
-
findFileSystemRootOfFileOnClasspath
@Nullable public static @Nullable Path findFileSystemRootOfFileOnClasspath(ClassLoader classLoader, String relativePath) -
findFileSystemRootsOfFileOnClasspath
public static List<Path> findFileSystemRootsOfFileOnClasspath(ClassLoader classLoader, String relativePath) -
findFileSystemRootOfFileOnClasspath
-
getAllClasspathItems
-