Class TranslationStorage
java.lang.Object
net.minecraft.util.Language
net.minecraft.client.resource.language.TranslationStorage
@Environment(CLIENT) public class TranslationStorage extends Language
- Mappings:
Namespace Name official esn
intermediary net/minecraft/class_1078
named net/minecraft/client/resource/language/TranslationStorage
-
Field Summary
Fields Modifier and Type Field Description private static Logger
LOGGER
private boolean
rightToLeft
private Map<String,String>
translations
-
Constructor Summary
Constructors Modifier Constructor Description private
TranslationStorage(Map<String,String> translations, boolean rightToLeft)
-
Method Summary
Modifier and Type Method Description String
get(String key)
boolean
hasTranslation(String key)
boolean
isRightToLeft()
private static void
load(List<Resource> resources, Map<String,String> translationMap)
static TranslationStorage
load(ResourceManager resourceManager, List<LanguageDefinition> definitions)
OrderedText
reorder(StringVisitable text)
Methods inherited from class net.minecraft.util.Language
getInstance, load, reorder, setInstance
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lesn;a:Lorg/apache/logging/log4j/Logger;
intermediary field_5332
Lnet/minecraft/class_1078;field_5332:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/resource/language/TranslationStorage;LOGGER:Lorg/apache/logging/log4j/Logger;
-
translations
- Mappings:
Namespace Name Mixin selector official b
Lesn;b:Ljava/util/Map;
intermediary field_5330
Lnet/minecraft/class_1078;field_5330:Ljava/util/Map;
named translations
Lnet/minecraft/client/resource/language/TranslationStorage;translations:Ljava/util/Map;
-
rightToLeft
private final boolean rightToLeft- Mappings:
Namespace Name Mixin selector official c
Lesn;c:Z
intermediary field_25289
Lnet/minecraft/class_1078;field_25289:Z
named rightToLeft
Lnet/minecraft/client/resource/language/TranslationStorage;rightToLeft:Z
-
-
Constructor Details
-
TranslationStorage
- Mappings:
Namespace Name Mixin selector official <init>
Lesn;<init>(Ljava/util/Map;Z)V
intermediary <init>
Lnet/minecraft/class_1078;<init>(Ljava/util/Map;Z)V
named <init>
Lnet/minecraft/client/resource/language/TranslationStorage;<init>(Ljava/util/Map;Z)V
-
-
Method Details
-
load
public static TranslationStorage load(ResourceManager resourceManager, List<LanguageDefinition> definitions)- Mappings:
Namespace Name Mixin selector official a
Lesn;a(Lacx;Ljava/util/List;)Lesn;
intermediary method_4675
Lnet/minecraft/class_1078;method_4675(Lnet/minecraft/class_3300;Ljava/util/List;)Lnet/minecraft/class_1078;
named load
Lnet/minecraft/client/resource/language/TranslationStorage;load(Lnet/minecraft/resource/ResourceManager;Ljava/util/List;)Lnet/minecraft/client/resource/language/TranslationStorage;
-
load
- Mappings:
Namespace Name Mixin selector official a
Lesn;a(Ljava/util/List;Ljava/util/Map;)V
intermediary method_4676
Lnet/minecraft/class_1078;method_4676(Ljava/util/List;Ljava/util/Map;)V
named load
Lnet/minecraft/client/resource/language/TranslationStorage;load(Ljava/util/List;Ljava/util/Map;)V
-
get
- Specified by:
get
in classLanguage
- Mappings:
Namespace Name Mixin selector official a
Lml;a(Ljava/lang/String;)Ljava/lang/String;
intermediary method_4679
Lnet/minecraft/class_2477;method_4679(Ljava/lang/String;)Ljava/lang/String;
named get
Lnet/minecraft/util/Language;get(Ljava/lang/String;)Ljava/lang/String;
-
hasTranslation
- Specified by:
hasTranslation
in classLanguage
- Mappings:
Namespace Name Mixin selector official b
Lml;b(Ljava/lang/String;)Z
intermediary method_4678
Lnet/minecraft/class_2477;method_4678(Ljava/lang/String;)Z
named hasTranslation
Lnet/minecraft/util/Language;hasTranslation(Ljava/lang/String;)Z
-
isRightToLeft
public boolean isRightToLeft()- Specified by:
isRightToLeft
in classLanguage
- Mappings:
Namespace Name Mixin selector official b
Lml;b()Z
intermediary method_29428
Lnet/minecraft/class_2477;method_29428()Z
named isRightToLeft
Lnet/minecraft/util/Language;isRightToLeft()Z
-
reorder
- Specified by:
reorder
in classLanguage
- Mappings:
Namespace Name Mixin selector official a
Lml;a(Lol;)Lafs;
intermediary method_30934
Lnet/minecraft/class_2477;method_30934(Lnet/minecraft/class_5348;)Lnet/minecraft/class_5481;
named reorder
Lnet/minecraft/util/Language;reorder(Lnet/minecraft/text/StringVisitable;)Lnet/minecraft/text/OrderedText;
-