Package net.neoforged.fml.javafmlmod
Class FMLJavaModLanguageProvider
java.lang.Object
net.neoforged.fml.loading.BuiltInLanguageLoader
net.neoforged.fml.javafmlmod.FMLJavaModLanguageProvider
- All Implemented Interfaces:
IModLanguageLoader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadMod
(IModInfo info, ModFileScanData modFileScanResults, ModuleLayer layer) Load and build a container from the given mod information.name()
Returns the name of this loader, used to decide what loader should load a mod.void
validate
(IModFile file, Collection<ModContainer> loadedContainers, IIssueReporting reporter) Validate mod files using this loader, and report any issues (such as entrpoints without medatata).Methods inherited from class net.neoforged.fml.loading.BuiltInLanguageLoader
version
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
FMLJavaModLanguageProvider
public FMLJavaModLanguageProvider()
-
-
Method Details
-
name
Description copied from interface:IModLanguageLoader
Returns the name of this loader, used to decide what loader should load a mod.- Returns:
- the name of this loader, used to decide what loader should load a mod
-
loadMod
Description copied from interface:IModLanguageLoader
Load and build a container from the given mod information.- Parameters:
info
- the mod informationmodFileScanResults
- the mod scan datalayer
- the module layer of the mod- Returns:
- the built mod container
-
validate
public void validate(IModFile file, Collection<ModContainer> loadedContainers, IIssueReporting reporter) Description copied from interface:IModLanguageLoader
Validate mod files using this loader, and report any issues (such as entrpoints without medatata).- Parameters:
file
- the file to validateloadedContainers
- the containers of mods in the file, that have been created using this loader. This list does not contain errored containersreporter
- the interface used to report issues to the game
-