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
named net/minecraft/client/resource/language/TranslationStorage
intermediary net/minecraft/class_1078
official hcp
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/resource/language/TranslationStorage;LOGGER:Lorg/slf4j/Logger;
      intermediary field_5332 Lnet/minecraft/class_1078;field_5332:Lorg/slf4j/Logger;
      official b Lhcp;b:Lorg/slf4j/Logger;
    • translations

      private final Map<String,String> translations
      Mappings:
      Namespace Name Mixin selector
      named translations Lnet/minecraft/client/resource/language/TranslationStorage;translations:Ljava/util/Map;
      intermediary field_5330 Lnet/minecraft/class_1078;field_5330:Ljava/util/Map;
      official c Lhcp;c:Ljava/util/Map;
    • rightToLeft

      private final boolean rightToLeft
      Mappings:
      Namespace Name Mixin selector
      named rightToLeft Lnet/minecraft/client/resource/language/TranslationStorage;rightToLeft:Z
      intermediary field_25289 Lnet/minecraft/class_1078;field_25289:Z
      official d Lhcp;d:Z
  • Constructor Details

    • TranslationStorage

      private TranslationStorage(Map<String,String> translations, boolean rightToLeft)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/resource/language/TranslationStorage;<init>(Ljava/util/Map;Z)V
      intermediary <init> Lnet/minecraft/class_1078;<init>(Ljava/util/Map;Z)V
      official <init> Lhcp;<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
      named load Lnet/minecraft/client/resource/language/TranslationStorage;load(Lnet/minecraft/resource/ResourceManager;Ljava/util/List;Z)Lnet/minecraft/client/resource/language/TranslationStorage;
      intermediary method_4675 Lnet/minecraft/class_1078;method_4675(Lnet/minecraft/class_3300;Ljava/util/List;Z)Lnet/minecraft/class_1078;
      official a Lhcp;a(Lavv;Ljava/util/List;Z)Lhcp;
    • load

      private static void load(String langCode, List<Resource> resourceRefs, Map<String,String> translations)
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/client/resource/language/TranslationStorage;load(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
      official a Lhcp;a(Ljava/lang/String;Ljava/util/List;Ljava/util/Map;)V
    • get

      public String get(String key, String fallback)
      Specified by:
      get in class Language
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/util/Language;get(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;
      official a Lus;a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    • hasTranslation

      public boolean hasTranslation(String key)
      Specified by:
      hasTranslation in class Language
      Mappings:
      Namespace Name Mixin selector
      named hasTranslation Lnet/minecraft/util/Language;hasTranslation(Ljava/lang/String;)Z
      intermediary method_4678 Lnet/minecraft/class_2477;method_4678(Ljava/lang/String;)Z
      official b Lus;b(Ljava/lang/String;)Z
    • isRightToLeft

      public boolean isRightToLeft()
      Specified by:
      isRightToLeft in class Language
      Mappings:
      Namespace Name Mixin selector
      named isRightToLeft Lnet/minecraft/util/Language;isRightToLeft()Z
      intermediary method_29428 Lnet/minecraft/class_2477;method_29428()Z
      official b Lus;b()Z
    • reorder

      public OrderedText reorder(StringVisitable text)
      Specified by:
      reorder in class Language
      Mappings:
      Namespace Name Mixin selector
      named reorder Lnet/minecraft/util/Language;reorder(Lnet/minecraft/text/StringVisitable;)Lnet/minecraft/text/OrderedText;
      intermediary method_30934 Lnet/minecraft/class_2477;method_30934(Lnet/minecraft/class_5348;)Lnet/minecraft/class_5481;
      official a Lus;a(Lya;)Lazq;