Class LanguageLoadingProvider

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

public class LanguageLoadingProvider extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • serviceLoader

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

      private final List<net.minecraftforge.forgespi.language.IModLanguageProvider> providers
    • providersByName

      private final Map<String,LanguageLoadingProvider.Wrapper> providersByName
    • IN_DEV

      private static final org.apache.maven.artifact.versioning.DefaultArtifactVersion IN_DEV
  • 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)
    • reload

      public void reload()
    • addAdditionalLanguages

      @Deprecated(forRemoval=true, since="1.20.2") public void addAdditionalLanguages(List<ModFile> modFiles)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This doesn't actually do anything with the argument, so just call reload(). Not sure when cpw broke that.
    • loadLanguageProviders

      private void loadLanguageProviders()
    • findLanguage

      public net.minecraftforge.forgespi.language.IModLanguageProvider findLanguage(ModFile mod, String language, org.apache.maven.artifact.versioning.VersionRange versionRange)