Class ClasspathLocator

java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.AbstractModProvider
net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator
All Implemented Interfaces:
net.minecraftforge.forgespi.locating.IModLocator, net.minecraftforge.forgespi.locating.IModProvider

@Internal public class ClasspathLocator extends AbstractModProvider implements net.minecraftforge.forgespi.locating.IModLocator
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • MOD_TYPE

      private static final Attributes.Name MOD_TYPE
  • Constructor Details

    • ClasspathLocator

      public ClasspathLocator()
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface net.minecraftforge.forgespi.locating.IModProvider
    • scanMods

      public List<net.minecraftforge.forgespi.locating.IModLocator.ModFileOrException> scanMods()
      Specified by:
      scanMods in interface net.minecraftforge.forgespi.locating.IModLocator
    • getUrls

      private List<URL> getUrls(ClassLoader cl, String resource)
    • getPath

      private static Path getPath(URL url, String resource)
    • getPathFromResource

      private static Path getPathFromResource(ClassLoader cl, String resource)