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
named net/minecraft/client/resource/language/LanguageManager
intermediary net/minecraft/class_1076
official hct
  • Field Details

    • LOGGER

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

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

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

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

      private final Consumer<TranslationStorage> reloadCallback
      Mappings:
      Namespace Name Mixin selector
      named reloadCallback Lnet/minecraft/client/resource/language/LanguageManager;reloadCallback:Ljava/util/function/Consumer;
      intermediary field_51830 Lnet/minecraft/class_1076;field_51830:Ljava/util/function/Consumer;
      official e Lhct;e:Ljava/util/function/Consumer;
  • Constructor Details

    • LanguageManager

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

    • loadAvailableLanguages

      private static Map<String,LanguageDefinition> loadAvailableLanguages(Stream<ResourcePack> packs)
      Mappings:
      Namespace Name Mixin selector
      named loadAvailableLanguages Lnet/minecraft/client/resource/language/LanguageManager;loadAvailableLanguages(Ljava/util/stream/Stream;)Ljava/util/Map;
      intermediary method_29393 Lnet/minecraft/class_1076;method_29393(Ljava/util/stream/Stream;)Ljava/util/Map;
      official a Lhct;a(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
      named reload Lnet/minecraft/resource/SynchronousResourceReloader;reload(Lnet/minecraft/resource/ResourceManager;)V
      intermediary method_14491 Lnet/minecraft/class_4013;method_14491(Lnet/minecraft/class_3300;)V
      official a Lavw;a(Lavv;)V
    • setLanguage

      public void setLanguage(String languageCode)
      Mappings:
      Namespace Name Mixin selector
      named setLanguage Lnet/minecraft/client/resource/language/LanguageManager;setLanguage(Ljava/lang/String;)V
      intermediary method_4667 Lnet/minecraft/class_1076;method_4667(Ljava/lang/String;)V
      official a Lhct;a(Ljava/lang/String;)V
    • getLanguage

      public String getLanguage()
      Mappings:
      Namespace Name Mixin selector
      named getLanguage Lnet/minecraft/client/resource/language/LanguageManager;getLanguage()Ljava/lang/String;
      intermediary method_4669 Lnet/minecraft/class_1076;method_4669()Ljava/lang/String;
      official a Lhct;a()Ljava/lang/String;
    • getAllLanguages

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

      @Nullable public @Nullable LanguageDefinition getLanguage(String code)
      Mappings:
      Namespace Name Mixin selector
      named getLanguage Lnet/minecraft/client/resource/language/LanguageManager;getLanguage(Ljava/lang/String;)Lnet/minecraft/client/resource/language/LanguageDefinition;
      intermediary method_4668 Lnet/minecraft/class_1076;method_4668(Ljava/lang/String;)Lnet/minecraft/class_1077;
      official b Lhct;b(Ljava/lang/String;)Lhcs;