Class ClasspathResourceUtils

java.lang.Object
net.neoforged.fml.util.ClasspathResourceUtils

@Internal public final class ClasspathResourceUtils extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
  • Constructor Details

    • ClasspathResourceUtils

      private ClasspathResourceUtils()
  • Method Details

    • findFileSystemRootsOfFileOnClasspath

      public static List<Path> findFileSystemRootsOfFileOnClasspath(String relativePath)
    • findJarPathFor

      public static Path findJarPathFor(String resourceName, String jarName, URL resource)
    • getRootFromResourceUrl

      public static Path getRootFromResourceUrl(String relativePath, URL resourceUrl)
    • findFileSystemRootOfFileOnClasspath

      @Nullable public static @Nullable Path findFileSystemRootOfFileOnClasspath(ClassLoader classLoader, String relativePath)
    • findFileSystemRootsOfFileOnClasspath

      public static List<Path> findFileSystemRootsOfFileOnClasspath(ClassLoader classLoader, String relativePath)
    • findFileSystemRootOfFileOnClasspath

      public static Path findFileSystemRootOfFileOnClasspath(String relativePath)
    • getAllClasspathItems

      public static Set<Path> getAllClasspathItems(ClassLoader loader)