Package net.minecraftforge.fml
Class ModList
java.lang.Object
net.minecraftforge.fml.ModList
Master list of all mods - game-side version. This is classloaded in the game scope and
can dispatch game level events as a result.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<String,
ModFileInfo> private Map<String,
ModContainer> private static ModList
private static org.apache.logging.log4j.Logger
private final List<ModFileInfo>
private List<net.minecraftforge.forgespi.language.ModFileScanData>
private List<ModContainer>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> Stream<T>
applyForEachModContainer
(Function<ModContainer, T> function) <T> Stream<T>
applyForEachModFile
(Function<ModFile, T> function) (package private) static CompletionStage<List<Throwable>>
completableFutureFromExceptionList
(List<? extends Map.Entry<?, Throwable>> t) private String
private String
fileToLine
(ModFile mf) void
forEachModContainer
(BiConsumer<String, ModContainer> modContainerConsumer) void
forEachModFile
(Consumer<ModFile> fileConsumer) (package private) <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent>
Function<Executor,CompletableFuture<List<Throwable>>> futureVisitor
(ModLoadingStage.EventGenerator<T> eventGenerator, BiFunction<ModLoadingStage, Throwable, ModLoadingStage> stateChange) (package private) static <V> CompletableFuture<List<Map.Entry<V,
Throwable>>> gather
(List<? extends CompletableFuture<? extends V>> futures) static ModList
get()
List<net.minecraftforge.forgespi.language.ModFileScanData>
Optional<? extends ModContainer>
getModContainerById
(String modId) Optional<? extends ModContainer>
private String
getModContainerState
(String modId) getModFileById
(String modid) <T> Optional<T>
getModObjectById
(String modId) getMods()
boolean
private static ForkJoinWorkerThread
static ModList
(package private) void
setLoadedMods
(List<ModContainer> modContainers) int
size()
-
Field Details
-
LOGGER
private static org.apache.logging.log4j.Logger LOGGER -
INSTANCE
-
modFiles
-
sortedList
-
fileById
-
mods
-
indexedMods
-
modFileScanData
-
-
Constructor Details
-
ModList
-
-
Method Details
-
getModContainerState
-
fileToLine
-
crashReport
-
of
-
get
-
newForkJoinWorkerThread
-
getModFiles
-
getModFileById
-
futureVisitor
<T extends net.minecraftforge.eventbus.api.Event & IModBusEvent> Function<Executor,CompletableFuture<List<Throwable>>> futureVisitor(ModLoadingStage.EventGenerator<T> eventGenerator, BiFunction<ModLoadingStage, Throwable, ModLoadingStage> stateChange) -
completableFutureFromExceptionList
-
gather
static <V> CompletableFuture<List<Map.Entry<V,Throwable>>> gather(List<? extends CompletableFuture<? extends V>> futures) -
setLoadedMods
-
getModObjectById
-
getModContainerById
-
getModContainerByObject
-
getMods
-
isLoaded
-
size
public int size() -
getAllScanData
-
forEachModFile
-
applyForEachModFile
-
forEachModContainer
-
applyForEachModContainer
-