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 fb
intermediary net/minecraft/class_1455
named net/minecraft/text/TranslatableText
  • Field Details

    • ARG_FORMAT

      public static final Pattern ARG_FORMAT
      Mappings:
      Namespace Name Mixin selector
      official c Lfb;c:Ljava/util/regex/Pattern;
      intermediary field_6038 Lnet/minecraft/class_1455;field_6038: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 Lfb;d:Ljava/lang/String;
      intermediary field_6039 Lnet/minecraft/class_1455;field_6039: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 Lfb;e:[Ljava/lang/Object;
      intermediary field_6040 Lnet/minecraft/class_1455;field_6040:[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 Lfb;f:Ljava/lang/Object;
      intermediary field_6041 Lnet/minecraft/class_1455;field_6041:Ljava/lang/Object;
      named lock Lnet/minecraft/text/TranslatableText;lock:Ljava/lang/Object;
    • languageReloadTimestamp

      private long languageReloadTimestamp
      Mappings:
      Namespace Name Mixin selector
      official g Lfb;g:J
      intermediary field_6042 Lnet/minecraft/class_1455;field_6042:J
      named languageReloadTimestamp Lnet/minecraft/text/TranslatableText;languageReloadTimestamp:J
    • translations

      List<Text> translations
      Mappings:
      Namespace Name Mixin selector
      official b Lfb;b:Ljava/util/List;
      intermediary field_6037 Lnet/minecraft/class_1455;field_6037: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> Lfb;<init>(Ljava/lang/String;[Ljava/lang/Object;)V
      intermediary <init> Lnet/minecraft/class_1455;<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 Lfb;g()V
      intermediary method_5234 Lnet/minecraft/class_1455;method_5234()V
      named updateTranslations Lnet/minecraft/text/TranslatableText;updateTranslations()V
    • setTranslation

      protected void setTranslation​(String translation)
      Mappings:
      Namespace Name Mixin selector
      official b Lfb;b(Ljava/lang/String;)V
      intermediary method_5233 Lnet/minecraft/class_1455;method_5233(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 Lfb;a(I)Leu;
      intermediary method_5232 Lnet/minecraft/class_1455;method_5232(I)Lnet/minecraft/class_1444;
      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 Leu;a(Lez;)Leu;
      intermediary method_5160 Lnet/minecraft/class_1444;method_5160(Lnet/minecraft/class_1451;)Lnet/minecraft/class_1444;
      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 Les;iterator()Ljava/util/Iterator;
      intermediary iterator Lnet/minecraft/class_1441;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 Leu;e()Ljava/lang/String;
      intermediary method_5165 Lnet/minecraft/class_1444;method_5165()Ljava/lang/String;
      named asString Lnet/minecraft/text/Text;asString()Ljava/lang/String;
    • copy

      public TranslatableText copy()
      Mappings:
      Namespace Name Mixin selector
      official h Lfb;h()Lfb;
      intermediary method_5235 Lnet/minecraft/class_1455;method_5235()Lnet/minecraft/class_1455;
      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 Les;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1441;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 Les;hashCode()I
      intermediary hashCode Lnet/minecraft/class_1441;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 Les;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_1441;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 Lfb;i()Ljava/lang/String;
      intermediary method_5236 Lnet/minecraft/class_1455;method_5236()Ljava/lang/String;
      named getKey Lnet/minecraft/text/TranslatableText;getKey()Ljava/lang/String;
    • getArgs

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