Class AbstractModProvider

java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.AbstractModProvider
All Implemented Interfaces:
net.minecraftforge.forgespi.locating.IModProvider
Direct Known Subclasses:
ClasspathLocator, ForgeDevLocator, ForgeUserdevLocator, JarInJarDependencyLocator, MinecraftLocator, ModsFolderLocator

@Internal public abstract class AbstractModProvider extends Object implements net.minecraftforge.forgespi.locating.IModProvider
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • MODS_TOML

      protected static final String MODS_TOML
      See Also:
  • Constructor Details

    • AbstractModProvider

      public AbstractModProvider()
  • Method Details

    • createMod

      protected net.minecraftforge.forgespi.locating.IModLocator.ModFileOrException createMod(Path path)
    • createMod

      @Nullable protected net.minecraftforge.forgespi.locating.IModLocator.ModFileOrException createMod(Path path, boolean ignoreUnknown)
    • createMod

      @Nullable protected net.minecraftforge.forgespi.locating.IModLocator.ModFileOrException createMod(Path path, boolean ignoreUnknown, String defaultType)
    • manifestParser

      protected net.minecraftforge.forgespi.language.IModFileInfo manifestParser(net.minecraftforge.forgespi.locating.IModFile mod)
    • isValid

      public boolean isValid(net.minecraftforge.forgespi.locating.IModFile modFile)
      Specified by:
      isValid in interface net.minecraftforge.forgespi.locating.IModProvider
    • initArguments

      public void initArguments(Map<String,?> arguments)
      Specified by:
      initArguments in interface net.minecraftforge.forgespi.locating.IModProvider
    • getDefaultJarModType

      protected String getDefaultJarModType()
    • scanFile

      public void scanFile(net.minecraftforge.forgespi.locating.IModFile file, Consumer<Path> pathConsumer)
      Specified by:
      scanFile in interface net.minecraftforge.forgespi.locating.IModProvider