Class ModsFolderLocator

  • All Implemented Interfaces:
    net.minecraftforge.forgespi.locating.IModLocator

    public class ModsFolderLocator
    extends AbstractJarFileLocator
    Support loading mods located in JAR files in the mods folder
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • modFolder

        private final java.nio.file.Path modFolder
      • customName

        private final java.lang.String customName
    • Constructor Detail

      • ModsFolderLocator

        public ModsFolderLocator()
      • ModsFolderLocator

        ModsFolderLocator​(java.nio.file.Path modFolder)
      • ModsFolderLocator

        ModsFolderLocator​(java.nio.file.Path modFolder,
                          java.lang.String name)
    • Method Detail

      • scanMods

        public java.util.List<net.minecraftforge.forgespi.locating.IModFile> scanMods()
      • name

        public java.lang.String name()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • initArguments

        public void initArguments​(java.util.Map<java.lang.String,​?> arguments)