Class LanguageManager
java.lang.Object
net.minecraft.client.resource.language.LanguageManager
- All Implemented Interfaces:
ResourceReloadListener
,SynchronousResourceReloadListener
@Environment(CLIENT) public class LanguageManager extends Object implements SynchronousResourceReloadListener
- Mappings:
Namespace Name official esr
intermediary net/minecraft/class_1076
named net/minecraft/client/resource/language/LanguageManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloadListener
ResourceReloadListener.Synchronizer
-
Field Summary
Fields Modifier and Type Field Description private String
currentLanguageCode
private static LanguageDefinition
ENGLISH_US
private LanguageDefinition
language
private Map<String,LanguageDefinition>
languageDefs
private static Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description LanguageManager(String languageCode)
-
Method Summary
Modifier and Type Method Description void
apply(ResourceManager manager)
SortedSet<LanguageDefinition>
getAllLanguages()
LanguageDefinition
getLanguage()
LanguageDefinition
getLanguage(String code)
private static Map<String,LanguageDefinition>
loadAvailableLanguages(Stream<ResourcePack> packs)
void
setLanguage(LanguageDefinition language)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.ResourceReloadListener
getName
Methods inherited from interface net.minecraft.resource.SynchronousResourceReloadListener
reload
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lesr;a:Lorg/apache/logging/log4j/Logger;
intermediary field_5325
Lnet/minecraft/class_1076;field_5325:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/resource/language/LanguageManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
ENGLISH_US
- Mappings:
Namespace Name Mixin selector official b
Lesr;b:Lesq;
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
- Mappings:
Namespace Name Mixin selector official c
Lesr;c: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
- Mappings:
Namespace Name Mixin selector official d
Lesr;d: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
- Mappings:
Namespace Name Mixin selector official e
Lesr;e:Lesq;
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
- Mappings:
Namespace Name Mixin selector official <init>
Lesr;<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
- Mappings:
Namespace Name Mixin selector official a
Lesr;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;
-
apply
- Specified by:
apply
in interfaceSynchronousResourceReloadListener
- Mappings:
Namespace Name Mixin selector official a
Lacy;a(Lacx;)V
intermediary method_14491
Lnet/minecraft/class_4013;method_14491(Lnet/minecraft/class_3300;)V
named apply
Lnet/minecraft/resource/SynchronousResourceReloadListener;apply(Lnet/minecraft/resource/ResourceManager;)V
-
setLanguage
- Mappings:
Namespace Name Mixin selector official a
Lesr;a(Lesq;)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
- Mappings:
Namespace Name Mixin selector official a
Lesr;a()Lesq;
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
- Mappings:
Namespace Name Mixin selector official b
Lesr;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
- Mappings:
Namespace Name Mixin selector official a
Lesr;a(Ljava/lang/String;)Lesq;
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;
-