Class TranslationStorage
java.lang.Object
net.minecraft.util.Language
net.minecraft.client.resource.language.TranslationStorage
- Mappings:
Namespace Name official gai
intermediary net/minecraft/class_1078
named net/minecraft/client/resource/language/TranslationStorage
-
Field Summary
Fields inherited from class net.minecraft.util.Language
DEFAULT_LANGUAGE
-
Constructor Summary
ModifierConstructorDescriptionprivate
TranslationStorage
(Map<String, String> translations, boolean rightToLeft) -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasTranslation
(String key) boolean
private static void
static TranslationStorage
load
(ResourceManager resourceManager, List<String> definitions, boolean rightToLeft) reorder
(StringVisitable text) Methods inherited from class net.minecraft.util.Language
get, getInstance, load, reorder, setInstance
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Lgai;b:Lorg/slf4j/Logger;
intermediary field_5332
Lnet/minecraft/class_1078;field_5332:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/resource/language/TranslationStorage;LOGGER:Lorg/slf4j/Logger;
-
translations
- Mappings:
Namespace Name Mixin selector official c
Lgai;c: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 d
Lgai;d: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>
Lgai;<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<String> definitions, boolean rightToLeft) - Mappings:
Namespace Name Mixin selector official a
Lgai;a(Lant;Ljava/util/List;Z)Lgai;
intermediary method_4675
Lnet/minecraft/class_1078;method_4675(Lnet/minecraft/class_3300;Ljava/util/List;Z)Lnet/minecraft/class_1078;
named load
Lnet/minecraft/client/resource/language/TranslationStorage;load(Lnet/minecraft/resource/ResourceManager;Ljava/util/List;Z)Lnet/minecraft/client/resource/language/TranslationStorage;
-
load
private static void load(String langCode, List<Resource> resourceRefs, Map<String, String> translations) - Mappings:
Namespace Name Mixin selector official a
Lgai;a(Ljava/lang/String;Ljava/util/List;Ljava/util/Map;)V
intermediary method_4676
Lnet/minecraft/class_1078;method_4676(Ljava/lang/String;Ljava/util/List;Ljava/util/Map;)V
named load
Lnet/minecraft/client/resource/language/TranslationStorage;load(Ljava/lang/String;Ljava/util/List;Ljava/util/Map;)V
-
get
- Specified by:
get
in classLanguage
- Mappings:
Namespace Name Mixin selector official a
Lqr;a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
intermediary method_4679
Lnet/minecraft/class_2477;method_4679(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
named get
Lnet/minecraft/util/Language;get(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
-
hasTranslation
- Specified by:
hasTranslation
in classLanguage
- Mappings:
Namespace Name Mixin selector official b
Lqr;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
Lqr;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
Lqr;a(Ltp;)Larj;
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;
-