public class LanguageLoadingProvider
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
LanguageLoadingProvider.LanguageClassLoader |
private static class |
LanguageLoadingProvider.ModLanguageWrapper |
Modifier and Type | Field and 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 and Description |
---|
LanguageLoadingProvider() |
Modifier and Type | Method and 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() |
private static final org.apache.logging.log4j.Logger LOGGER
private final LanguageLoadingProvider.LanguageClassLoader languageClassLoader
private final java.util.List<net.minecraftforge.forgespi.language.IModLanguageProvider> languageProviders
private final java.util.ServiceLoader<net.minecraftforge.forgespi.language.IModLanguageProvider> serviceLoader
private final java.util.Map<java.lang.String,LanguageLoadingProvider.ModLanguageWrapper> languageProviderMap
private java.util.List<java.nio.file.Path> languagePaths
public void forEach(java.util.function.Consumer<net.minecraftforge.forgespi.language.IModLanguageProvider> consumer)
public <T> java.util.stream.Stream<T> applyForEach(java.util.function.Function<net.minecraftforge.forgespi.language.IModLanguageProvider,T> function)
private void loadLanguageProviders()
void addForgeLanguage(java.nio.file.Path forgePath)
private void addLanguagePaths(java.util.stream.Stream<java.nio.file.Path> langPaths)
public void addAdditionalLanguages(java.util.List<ModFile> modFiles)
java.util.stream.Stream<java.nio.file.Path> getLibraries()
public net.minecraftforge.forgespi.language.IModLanguageProvider findLanguage(ModFile mf, java.lang.String modLoader, org.apache.maven.artifact.versioning.VersionRange modLoaderVersion)