Class BackgroundScanHandler
- java.lang.Object
-
- net.minecraftforge.fml.loading.moddiscovery.BackgroundScanHandler
-
public class BackgroundScanHandler extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
BackgroundScanHandler.ScanStatus
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ModFile>
allFiles
private LoadingModList
loadingModList
private static org.apache.logging.log4j.Logger
LOGGER
private java.util.concurrent.ExecutorService
modContentScanner
private java.util.Map<net.minecraftforge.forgespi.locating.IModFile.Type,java.util.List<ModFile>>
modFiles
private java.util.List<ModFile>
pendingFiles
private java.util.List<ModFile>
scannedFiles
private BackgroundScanHandler.ScanStatus
status
-
Constructor Summary
Constructors Constructor Description BackgroundScanHandler(java.util.Map<net.minecraftforge.forgespi.locating.IModFile.Type,java.util.List<ModFile>> modFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addCompletedFile(ModFile file, net.minecraftforge.forgespi.language.ModFileScanData modFileScanData, java.lang.Throwable throwable)
LoadingModList
getLoadingModList()
java.util.Map<net.minecraftforge.forgespi.locating.IModFile.Type,java.util.List<ModFile>>
getModFiles()
void
setLoadingModList(LoadingModList loadingModList)
void
submitForScanning(ModFile file)
void
waitForScanToComplete(java.lang.Runnable ticker)
-
-
-
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
-
status
private BackgroundScanHandler.ScanStatus status
-
loadingModList
private LoadingModList loadingModList
-
-
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)
-
getLoadingModList
public LoadingModList getLoadingModList()
-
waitForScanToComplete
public void waitForScanToComplete(java.lang.Runnable ticker)
-
-