Class LanguageManager

java.lang.Object
net.minecraft.client.resource.language.LanguageManager
All Implemented Interfaces:
ResourceReloader, SynchronousResourceReloader

@Environment(CLIENT) public class LanguageManager extends Object implements SynchronousResourceReloader
Mappings:
Namespace Name
official fpq
intermediary net/minecraft/class_1076
named net/minecraft/client/resource/language/LanguageManager
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lfpq;b:Lorg/slf4j/Logger;
      intermediary field_5325 Lnet/minecraft/class_1076;field_5325:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/resource/language/LanguageManager;LOGGER:Lorg/slf4j/Logger;
    • DEFAULT_LANGUAGE_CODE

      public static final String DEFAULT_LANGUAGE_CODE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lfpq;a:Ljava/lang/String;
      intermediary field_32971 Lnet/minecraft/class_1076;field_32971:Ljava/lang/String;
      named DEFAULT_LANGUAGE_CODE Lnet/minecraft/client/resource/language/LanguageManager;DEFAULT_LANGUAGE_CODE:Ljava/lang/String;
    • ENGLISH_US

      private static final LanguageDefinition ENGLISH_US
      Mappings:
      Namespace Name Mixin selector
      official c Lfpq;c:Lfpp;
      intermediary field_25291 Lnet/minecraft/class_1076;field_25291:Lnet/minecraft/class_1077;
      named ENGLISH_US Lnet/minecraft/client/resource/language/LanguageManager;ENGLISH_US:Lnet/minecraft/client/resource/language/LanguageDefinition;
    • languageDefs

      private Map<String,LanguageDefinition> languageDefs
      Mappings:
      Namespace Name Mixin selector
      official d Lfpq;d:Ljava/util/Map;
      intermediary field_5324 Lnet/minecraft/class_1076;field_5324:Ljava/util/Map;
      named languageDefs Lnet/minecraft/client/resource/language/LanguageManager;languageDefs:Ljava/util/Map;
    • currentLanguageCode

      private String currentLanguageCode
      Mappings:
      Namespace Name Mixin selector
      official e Lfpq;e:Ljava/lang/String;
      intermediary field_5323 Lnet/minecraft/class_1076;field_5323:Ljava/lang/String;
      named currentLanguageCode Lnet/minecraft/client/resource/language/LanguageManager;currentLanguageCode:Ljava/lang/String;
    • language

      private LanguageDefinition language
      Mappings:
      Namespace Name Mixin selector
      official f Lfpq;f:Lfpp;
      intermediary field_25292 Lnet/minecraft/class_1076;field_25292:Lnet/minecraft/class_1077;
      named language Lnet/minecraft/client/resource/language/LanguageManager;language:Lnet/minecraft/client/resource/language/LanguageDefinition;
  • Constructor Details

    • LanguageManager

      public LanguageManager(String languageCode)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfpq;<init>(Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_1076;<init>(Ljava/lang/String;)V
      named <init> Lnet/minecraft/client/resource/language/LanguageManager;<init>(Ljava/lang/String;)V
  • Method Details

    • loadAvailableLanguages

      private static Map<String,LanguageDefinition> loadAvailableLanguages(Stream<ResourcePack> packs)
      Mappings:
      Namespace Name Mixin selector
      official a Lfpq;a(Ljava/util/stream/Stream;)Ljava/util/Map;
      intermediary method_29393 Lnet/minecraft/class_1076;method_29393(Ljava/util/stream/Stream;)Ljava/util/Map;
      named loadAvailableLanguages Lnet/minecraft/client/resource/language/LanguageManager;loadAvailableLanguages(Ljava/util/stream/Stream;)Ljava/util/Map;
    • reload

      public void reload(ResourceManager manager)
      Performs the reload in the apply executor, or the game engine.
      Specified by:
      reload in interface SynchronousResourceReloader
      Parameters:
      manager - the resource manager
      Mappings:
      Namespace Name Mixin selector
      official a Lakf;a(Lake;)V
      intermediary method_14491 Lnet/minecraft/class_4013;method_14491(Lnet/minecraft/class_3300;)V
      named reload Lnet/minecraft/resource/SynchronousResourceReloader;reload(Lnet/minecraft/resource/ResourceManager;)V
    • setLanguage

      public void setLanguage(LanguageDefinition language)
      Mappings:
      Namespace Name Mixin selector
      official a Lfpq;a(Lfpp;)V
      intermediary method_4667 Lnet/minecraft/class_1076;method_4667(Lnet/minecraft/class_1077;)V
      named setLanguage Lnet/minecraft/client/resource/language/LanguageManager;setLanguage(Lnet/minecraft/client/resource/language/LanguageDefinition;)V
    • getLanguage

      public LanguageDefinition getLanguage()
      Mappings:
      Namespace Name Mixin selector
      official a Lfpq;a()Lfpp;
      intermediary method_4669 Lnet/minecraft/class_1076;method_4669()Lnet/minecraft/class_1077;
      named getLanguage Lnet/minecraft/client/resource/language/LanguageManager;getLanguage()Lnet/minecraft/client/resource/language/LanguageDefinition;
    • getAllLanguages

      public SortedSet<LanguageDefinition> getAllLanguages()
      Mappings:
      Namespace Name Mixin selector
      official b Lfpq;b()Ljava/util/SortedSet;
      intermediary method_4665 Lnet/minecraft/class_1076;method_4665()Ljava/util/SortedSet;
      named getAllLanguages Lnet/minecraft/client/resource/language/LanguageManager;getAllLanguages()Ljava/util/SortedSet;
    • getLanguage

      public LanguageDefinition getLanguage(String code)
      Mappings:
      Namespace Name Mixin selector
      official a Lfpq;a(Ljava/lang/String;)Lfpp;
      intermediary method_4668 Lnet/minecraft/class_1076;method_4668(Ljava/lang/String;)Lnet/minecraft/class_1077;
      named getLanguage Lnet/minecraft/client/resource/language/LanguageManager;getLanguage(Ljava/lang/String;)Lnet/minecraft/client/resource/language/LanguageDefinition;