Class LanguageLoadingProvider


  • public class LanguageLoadingProvider
    extends java.lang.Object
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • languageProviders

        private final java.util.List<net.minecraftforge.forgespi.language.IModLanguageProvider> languageProviders
      • serviceLoader

        private final java.util.ServiceLoader<net.minecraftforge.forgespi.language.IModLanguageProvider> serviceLoader
      • languagePaths

        private java.util.List<java.nio.file.Path> languagePaths
    • Constructor Detail

      • LanguageLoadingProvider

        LanguageLoadingProvider()
    • 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)