Class ModsFolderLocator

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

public class ModsFolderLocator extends AbstractModProvider implements net.minecraftforge.forgespi.locating.IModLocator
Support loading mods located in JAR files in the mods folder
  • Field Details

    • SUFFIX

      private static final String SUFFIX
      See Also:
    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • modFolder

      private final Path modFolder
    • customName

      private final String customName
  • Constructor Details

    • ModsFolderLocator

      public ModsFolderLocator()
    • ModsFolderLocator

      ModsFolderLocator(Path modFolder, String name)
  • Method Details

    • scanMods

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

      private static <E extends Throwable, R> R sneak(Throwable e) throws E
      Throws:
      E extends Throwable
    • name

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

      public String toString()
      Overrides:
      toString in class Object