Class TranslatableText

java.lang.Object
net.minecraft.text.BaseText
net.minecraft.text.TranslatableText
All Implemented Interfaces:
Iterable<Text>, Text

public class TranslatableText extends BaseText
Mappings:
Namespace Name
official fd
intermediary net/minecraft/class_1990
named net/minecraft/text/TranslatableText
  • Field Details

    • ARG_FORMAT

      public static final Pattern ARG_FORMAT
      Mappings:
      Namespace Name Mixin selector
      official c Lfd;c:Ljava/util/regex/Pattern;
      intermediary field_8507 Lnet/minecraft/class_1990;field_8507:Ljava/util/regex/Pattern;
      named ARG_FORMAT Lnet/minecraft/text/TranslatableText;ARG_FORMAT:Ljava/util/regex/Pattern;
    • key

      private final String key
      Mappings:
      Namespace Name Mixin selector
      official d Lfd;d:Ljava/lang/String;
      intermediary field_8508 Lnet/minecraft/class_1990;field_8508:Ljava/lang/String;
      named key Lnet/minecraft/text/TranslatableText;key:Ljava/lang/String;
    • args

      private final Object[] args
      Mappings:
      Namespace Name Mixin selector
      official e Lfd;e:[Ljava/lang/Object;
      intermediary field_8509 Lnet/minecraft/class_1990;field_8509:[Ljava/lang/Object;
      named args Lnet/minecraft/text/TranslatableText;args:[Ljava/lang/Object;
    • lock

      private final Object lock
      Mappings:
      Namespace Name Mixin selector
      official f Lfd;f:Ljava/lang/Object;
      intermediary field_8510 Lnet/minecraft/class_1990;field_8510:Ljava/lang/Object;
      named lock Lnet/minecraft/text/TranslatableText;lock:Ljava/lang/Object;
    • languageReloadTimestamp

      private long languageReloadTimestamp
      Mappings:
      Namespace Name Mixin selector
      official g Lfd;g:J
      intermediary field_8511 Lnet/minecraft/class_1990;field_8511:J
      named languageReloadTimestamp Lnet/minecraft/text/TranslatableText;languageReloadTimestamp:J
    • translations

      List<Text> translations
      Mappings:
      Namespace Name Mixin selector
      official b Lfd;b:Ljava/util/List;
      intermediary field_8506 Lnet/minecraft/class_1990;field_8506:Ljava/util/List;
      named translations Lnet/minecraft/text/TranslatableText;translations:Ljava/util/List;
  • Constructor Details

    • TranslatableText

      public TranslatableText(String key, Object[] args)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfd;<init>(Ljava/lang/String;[Ljava/lang/Object;)V
      intermediary <init> Lnet/minecraft/class_1990;<init>(Ljava/lang/String;[Ljava/lang/Object;)V
      named <init> Lnet/minecraft/text/TranslatableText;<init>(Ljava/lang/String;[Ljava/lang/Object;)V
  • Method Details

    • updateTranslations

      void updateTranslations()
      Mappings:
      Namespace Name Mixin selector
      official g Lfd;g()V
      intermediary method_7529 Lnet/minecraft/class_1990;method_7529()V
      named updateTranslations Lnet/minecraft/text/TranslatableText;updateTranslations()V
    • setTranslation

      protected void setTranslation(String translation)
      Mappings:
      Namespace Name Mixin selector
      official b Lfd;b(Ljava/lang/String;)V
      intermediary method_7528 Lnet/minecraft/class_1990;method_7528(Ljava/lang/String;)V
      named setTranslation Lnet/minecraft/text/TranslatableText;setTranslation(Ljava/lang/String;)V
    • getArg

      private Text getArg(int index)
      Mappings:
      Namespace Name Mixin selector
      official a Lfd;a(I)Lew;
      intermediary method_7527 Lnet/minecraft/class_1990;method_7527(I)Lnet/minecraft/class_1982;
      named getArg Lnet/minecraft/text/TranslatableText;getArg(I)Lnet/minecraft/text/Text;
    • setStyle

      public Text setStyle(Style style)
      Specified by:
      setStyle in interface Text
      Overrides:
      setStyle in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official a Lew;a(Lfb;)Lew;
      intermediary method_7468 Lnet/minecraft/class_1982;method_7468(Lnet/minecraft/class_1986;)Lnet/minecraft/class_1982;
      named setStyle Lnet/minecraft/text/Text;setStyle(Lnet/minecraft/text/Style;)Lnet/minecraft/text/Text;
    • iterator

      public Iterator<Text> iterator()
      Specified by:
      iterator in interface Iterable<Text>
      Overrides:
      iterator in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official iterator Leu;iterator()Ljava/util/Iterator;
      intermediary iterator Lnet/minecraft/class_1977;iterator()Ljava/util/Iterator;
      named iterator Lnet/minecraft/text/BaseText;iterator()Ljava/util/Iterator;
    • asString

      public String asString()
      Mappings:
      Namespace Name Mixin selector
      official e Lew;e()Ljava/lang/String;
      intermediary method_7473 Lnet/minecraft/class_1982;method_7473()Ljava/lang/String;
      named asString Lnet/minecraft/text/Text;asString()Ljava/lang/String;
    • copy

      public TranslatableText copy()
      Mappings:
      Namespace Name Mixin selector
      official h Lfd;h()Lfd;
      intermediary method_7530 Lnet/minecraft/class_1990;method_7530()Lnet/minecraft/class_1990;
      named copy Lnet/minecraft/text/TranslatableText;copy()Lnet/minecraft/text/TranslatableText;
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official equals Leu;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1977;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/text/BaseText;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official hashCode Leu;hashCode()I
      intermediary hashCode Lnet/minecraft/class_1977;hashCode()I
      named hashCode Lnet/minecraft/text/BaseText;hashCode()I
    • toString

      public String toString()
      Overrides:
      toString in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official toString Leu;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_1977;toString()Ljava/lang/String;
      named toString Lnet/minecraft/text/BaseText;toString()Ljava/lang/String;
    • getKey

      public String getKey()
      Mappings:
      Namespace Name Mixin selector
      official i Lfd;i()Ljava/lang/String;
      intermediary method_7531 Lnet/minecraft/class_1990;method_7531()Ljava/lang/String;
      named getKey Lnet/minecraft/text/TranslatableText;getKey()Ljava/lang/String;
    • getArgs

      public Object[] getArgs()
      Mappings:
      Namespace Name Mixin selector
      official j Lfd;j()[Ljava/lang/Object;
      intermediary method_7532 Lnet/minecraft/class_1990;method_7532()[Ljava/lang/Object;
      named getArgs Lnet/minecraft/text/TranslatableText;getArgs()[Ljava/lang/Object;