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<net.minecraftforge.forgespi.language.IModFileInfo>
private List<net.minecraftforge.forgespi.language.ModFileScanData>
private List<ModContainer>
private List<ModContainer>
private final List<net.minecraftforge.forgespi.language.IModInfo>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> Stream<T>
applyForEachModContainer
(Function<ModContainer, T> function) <T> Stream<T>
applyForEachModFile
(Function<net.minecraftforge.forgespi.locating.IModFile, T> function) (package private) static CompletionStage<Void>
completableFutureFromExceptionList
(List<? extends Map.Entry<?, Throwable>> t) private String
private String
fileToLine
(net.minecraftforge.forgespi.locating.IModFile mf) void
forEachModContainer
(BiConsumer<String, ModContainer> modContainerConsumer) void
forEachModFile
(Consumer<net.minecraftforge.forgespi.locating.IModFile> fileConsumer) void
forEachModInOrder
(Consumer<ModContainer> containerConsumer) (package private) <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent>
Function<Executor,CompletableFuture<Void>> futureVisitor
(IModStateTransition.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) net.minecraftforge.forgespi.language.IModFileInfo
getModFileById
(String modid) List<net.minecraftforge.forgespi.language.IModFileInfo>
<T> Optional<T>
getModObjectById
(String modId) List<net.minecraftforge.forgespi.language.IModInfo>
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
-
sortedContainers
-
-
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<Void>> futureVisitor(IModStateTransition.EventGenerator<T> eventGenerator, BiFunction<ModLoadingStage, Throwable, ModLoadingStage> stateChange) -
completableFutureFromExceptionList
static CompletionStage<Void> completableFutureFromExceptionList(List<? extends Map.Entry<?, Throwable>> t) -
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
-
forEachModInOrder
-
applyForEachModContainer
-