Class BackgroundScanHandler


  • public class BackgroundScanHandler
    extends java.lang.Object
    • Field Detail

      • LOGGER

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

        private final java.util.concurrent.ExecutorService modContentScanner
      • pendingFiles

        private final java.util.List<ModFile> pendingFiles
      • scannedFiles

        private final java.util.List<ModFile> scannedFiles
      • allFiles

        private final java.util.List<ModFile> allFiles
      • modFiles

        private final java.util.Map<net.minecraftforge.forgespi.locating.IModFile.Type,​java.util.List<ModFile>> modFiles
    • Constructor Detail

      • BackgroundScanHandler

        public BackgroundScanHandler​(java.util.Map<net.minecraftforge.forgespi.locating.IModFile.Type,​java.util.List<ModFile>> modFiles)
    • Method Detail

      • getModFiles

        public java.util.Map<net.minecraftforge.forgespi.locating.IModFile.Type,​java.util.List<ModFile>> getModFiles()
      • submitForScanning

        public void submitForScanning​(ModFile file)
      • addCompletedFile

        private void addCompletedFile​(ModFile file,
                                      net.minecraftforge.forgespi.language.ModFileScanData modFileScanData,
                                      java.lang.Throwable throwable)
      • setLoadingModList

        public void setLoadingModList​(LoadingModList loadingModList)
      • waitForScanToComplete

        public void waitForScanToComplete​(java.lang.Runnable ticker)