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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String,ModFileInfo> private Map<String,ModContainer> private static ModListprivate static org.apache.logging.log4j.Loggerprivate final List<ModFileInfo>private List<net.minecraftforge.forgespi.language.ModFileScanData>private List<ModContainer> -
Constructor Summary
Constructors -
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 Stringprivate StringfileToLine(ModFile mf) voidforEachModContainer(BiConsumer<String, ModContainer> modContainerConsumer) voidforEachModFile(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 ModListget()List<net.minecraftforge.forgespi.language.ModFileScanData>Optional<? extends ModContainer>getModContainerById(String modId) Optional<? extends ModContainer>private StringgetModContainerState(String modId) getModFileById(String modid) <T> Optional<T>getModObjectById(String modId) getMods()booleanprivate static ForkJoinWorkerThreadstatic ModList(package private) voidsetLoadedMods(List<ModContainer> modContainers) intsize()
-
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
-