Package net.minecraftforge.fml.loading
Class LanguageLoadingProvider
- java.lang.Object
-
- net.minecraftforge.fml.loading.LanguageLoadingProvider
-
public class LanguageLoadingProvider extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
LanguageLoadingProvider.LanguageClassLoader
private static class
LanguageLoadingProvider.ModLanguageWrapper
-
Field Summary
Fields Modifier and Type Field Description private LanguageLoadingProvider.LanguageClassLoader
languageClassLoader
private java.util.List<java.nio.file.Path>
languagePaths
private java.util.Map<java.lang.String,LanguageLoadingProvider.ModLanguageWrapper>
languageProviderMap
private java.util.List<net.minecraftforge.forgespi.language.IModLanguageProvider>
languageProviders
private static org.apache.logging.log4j.Logger
LOGGER
private java.util.ServiceLoader<net.minecraftforge.forgespi.language.IModLanguageProvider>
serviceLoader
-
Constructor Summary
Constructors Constructor Description LanguageLoadingProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdditionalLanguages(java.util.List<ModFile> modFiles)
(package private) void
addForgeLanguage(java.nio.file.Path forgePath)
private void
addLanguagePaths(java.util.stream.Stream<java.nio.file.Path> langPaths)
<T> java.util.stream.Stream<T>
applyForEach(java.util.function.Function<net.minecraftforge.forgespi.language.IModLanguageProvider,T> function)
net.minecraftforge.forgespi.language.IModLanguageProvider
findLanguage(ModFile mf, java.lang.String modLoader, org.apache.maven.artifact.versioning.VersionRange modLoaderVersion)
void
forEach(java.util.function.Consumer<net.minecraftforge.forgespi.language.IModLanguageProvider> consumer)
(package private) java.util.stream.Stream<java.nio.file.Path>
getLibraries()
private void
loadLanguageProviders()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
languageClassLoader
private final LanguageLoadingProvider.LanguageClassLoader languageClassLoader
-
languageProviders
private final java.util.List<net.minecraftforge.forgespi.language.IModLanguageProvider> languageProviders
-
serviceLoader
private final java.util.ServiceLoader<net.minecraftforge.forgespi.language.IModLanguageProvider> serviceLoader
-
languageProviderMap
private final java.util.Map<java.lang.String,LanguageLoadingProvider.ModLanguageWrapper> languageProviderMap
-
languagePaths
private java.util.List<java.nio.file.Path> languagePaths
-
-
Method Detail
-
forEach
public void forEach(java.util.function.Consumer<net.minecraftforge.forgespi.language.IModLanguageProvider> consumer)
-
applyForEach
public <T> java.util.stream.Stream<T> applyForEach(java.util.function.Function<net.minecraftforge.forgespi.language.IModLanguageProvider,T> function)
-
loadLanguageProviders
private void loadLanguageProviders()
-
addForgeLanguage
void addForgeLanguage(java.nio.file.Path forgePath)
-
addLanguagePaths
private void addLanguagePaths(java.util.stream.Stream<java.nio.file.Path> langPaths)
-
addAdditionalLanguages
public void addAdditionalLanguages(java.util.List<ModFile> modFiles)
-
getLibraries
java.util.stream.Stream<java.nio.file.Path> getLibraries()
-
findLanguage
public net.minecraftforge.forgespi.language.IModLanguageProvider findLanguage(ModFile mf, java.lang.String modLoader, org.apache.maven.artifact.versioning.VersionRange modLoaderVersion)
-
-