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