Package net.minecraftforge.fml.loading
Class LanguageLoadingProvider
java.lang.Object
net.minecraftforge.fml.loading.LanguageLoadingProvider
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LanguageLoadingProvider.LanguageClassLoader
private final Map<String,
LanguageLoadingProvider.ModLanguageWrapper> private final List<net.minecraftforge.forgespi.language.IModLanguageProvider>
private static final org.apache.logging.log4j.Logger
private final 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 -
languageClassLoader
-
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
-