Class LanguageLoadingProvider

java.lang.Object
net.minecraftforge.fml.loading.LanguageLoadingProvider

public class LanguageLoadingProvider extends Object
  • Field Details

    • LOGGER

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

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

      private final ServiceLoader<net.minecraftforge.forgespi.language.IModLanguageProvider> serviceLoader
    • languageProviderMap

      private final Map<String,LanguageLoadingProvider.ModLanguageWrapper> languageProviderMap
    • languagePaths

      private List<Path> languagePaths
  • Constructor Details

    • LanguageLoadingProvider

      LanguageLoadingProvider()
  • Method Details

    • forEach

      public void forEach(Consumer<net.minecraftforge.forgespi.language.IModLanguageProvider> consumer)
    • applyForEach

      public <T> Stream<T> applyForEach(Function<net.minecraftforge.forgespi.language.IModLanguageProvider,T> function)
    • loadLanguageProviders

      private void loadLanguageProviders()
    • addForgeLanguage

      void addForgeLanguage(Path forgePath)
    • addLanguagePaths

      private void addLanguagePaths(Stream<Path> langPaths)
    • addAdditionalLanguages

      public void addAdditionalLanguages(List<ModFile> modFiles)
    • getLibraries

      Stream<Path> getLibraries()
    • findLanguage

      public net.minecraftforge.forgespi.language.IModLanguageProvider findLanguage(ModFile mf, String modLoader, org.apache.maven.artifact.versioning.VersionRange modLoaderVersion)