Package net.minecraftforge.fml.loading
Class LanguageLoadingProvider
java.lang.Object
net.minecraftforge.fml.loading.LanguageLoadingProvider
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<net.minecraftforge.forgespi.language.IModLanguageProvider>
private static org.apache.logging.log4j.Logger
private ServiceLoader<net.minecraftforge.forgespi.language.IModLanguageProvider>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalLanguages(List<ModFile> modFiles)
(package private) void
addForgeLanguage(Path forgePath)
private void
addLanguagePaths(Stream<Path> langPaths)
<T> Stream<T>
applyForEach(Function<net.minecraftforge.forgespi.language.IModLanguageProvider,T> function)
net.minecraftforge.forgespi.language.IModLanguageProvider
findLanguage(ModFile mf, String modLoader, org.apache.maven.artifact.versioning.VersionRange modLoaderVersion)
void
private void
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
languageProviders
-
serviceLoader
private final ServiceLoader<net.minecraftforge.forgespi.language.IModLanguageProvider> serviceLoader -
languageProviderMap
-
languagePaths
-
-
Constructor Details
-
LanguageLoadingProvider
LanguageLoadingProvider()
-
-
Method Details
-
forEach
-
applyForEach
-
loadLanguageProviders
private void loadLanguageProviders() -
addForgeLanguage
-
addLanguagePaths
-
addAdditionalLanguages
-
getLibraries
-
findLanguage
-