Package net.minecraft.text
Class TranslatableText
java.lang.Object
net.minecraft.text.BaseText
net.minecraft.text.TranslatableText
public class TranslatableText extends BaseText
- Mappings:
Namespace Name official fbintermediary net/minecraft/class_1455named net/minecraft/text/TranslatableText
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.Text
Text.Serializer -
Field Summary
Fields Modifier and Type Field Description static PatternARG_FORMATprivate Object[]argsprivate Stringkeyprivate longlanguageReloadTimestampprivate Objectlock(package private) List<Text>translations -
Constructor Summary
Constructors Constructor Description TranslatableText(String key, Object[] args) -
Method Summary
Modifier and Type Method Description StringasString()TranslatableTextcopy()booleanequals(Object object)private TextgetArg(int index)Object[]getArgs()StringgetKey()inthashCode()Iterator<Text>iterator()TextsetStyle(Style style)protected voidsetTranslation(String translation)StringtoString()(package private) voidupdateTranslations()Methods inherited from class net.minecraft.text.BaseText
append, append, asFormattedString, getSiblings, getString, getStyle, method_5150Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
ARG_FORMAT
- Mappings:
Namespace Name Mixin selector official cLfb;c:Ljava/util/regex/Pattern;intermediary field_6038Lnet/minecraft/class_1455;field_6038:Ljava/util/regex/Pattern;named ARG_FORMATLnet/minecraft/text/TranslatableText;ARG_FORMAT:Ljava/util/regex/Pattern;
-
key
- Mappings:
Namespace Name Mixin selector official dLfb;d:Ljava/lang/String;intermediary field_6039Lnet/minecraft/class_1455;field_6039:Ljava/lang/String;named keyLnet/minecraft/text/TranslatableText;key:Ljava/lang/String;
-
args
- Mappings:
Namespace Name Mixin selector official eLfb;e:[Ljava/lang/Object;intermediary field_6040Lnet/minecraft/class_1455;field_6040:[Ljava/lang/Object;named argsLnet/minecraft/text/TranslatableText;args:[Ljava/lang/Object;
-
lock
- Mappings:
Namespace Name Mixin selector official fLfb;f:Ljava/lang/Object;intermediary field_6041Lnet/minecraft/class_1455;field_6041:Ljava/lang/Object;named lockLnet/minecraft/text/TranslatableText;lock:Ljava/lang/Object;
-
languageReloadTimestamp
private long languageReloadTimestamp- Mappings:
Namespace Name Mixin selector official gLfb;g:Jintermediary field_6042Lnet/minecraft/class_1455;field_6042:Jnamed languageReloadTimestampLnet/minecraft/text/TranslatableText;languageReloadTimestamp:J
-
translations
- Mappings:
Namespace Name Mixin selector official bLfb;b:Ljava/util/List;intermediary field_6037Lnet/minecraft/class_1455;field_6037:Ljava/util/List;named translationsLnet/minecraft/text/TranslatableText;translations:Ljava/util/List;
-
-
Constructor Details
-
TranslatableText
- Mappings:
Namespace Name Mixin selector official <init>Lfb;<init>(Ljava/lang/String;[Ljava/lang/Object;)Vintermediary <init>Lnet/minecraft/class_1455;<init>(Ljava/lang/String;[Ljava/lang/Object;)Vnamed <init>Lnet/minecraft/text/TranslatableText;<init>(Ljava/lang/String;[Ljava/lang/Object;)V
-
-
Method Details
-
updateTranslations
void updateTranslations()- Mappings:
Namespace Name Mixin selector official gLfb;g()Vintermediary method_5234Lnet/minecraft/class_1455;method_5234()Vnamed updateTranslationsLnet/minecraft/text/TranslatableText;updateTranslations()V
-
setTranslation
- Mappings:
Namespace Name Mixin selector official bLfb;b(Ljava/lang/String;)Vintermediary method_5233Lnet/minecraft/class_1455;method_5233(Ljava/lang/String;)Vnamed setTranslationLnet/minecraft/text/TranslatableText;setTranslation(Ljava/lang/String;)V
-
getArg
- Mappings:
Namespace Name Mixin selector official aLfb;a(I)Leu;intermediary method_5232Lnet/minecraft/class_1455;method_5232(I)Lnet/minecraft/class_1444;named getArgLnet/minecraft/text/TranslatableText;getArg(I)Lnet/minecraft/text/Text;
-
setStyle
- Specified by:
setStylein interfaceText- Overrides:
setStylein classBaseText- Mappings:
Namespace Name Mixin selector official aLeu;a(Lez;)Leu;intermediary method_5160Lnet/minecraft/class_1444;method_5160(Lnet/minecraft/class_1451;)Lnet/minecraft/class_1444;named setStyleLnet/minecraft/text/Text;setStyle(Lnet/minecraft/text/Style;)Lnet/minecraft/text/Text;
-
iterator
- Specified by:
iteratorin interfaceIterable<Text>- Overrides:
iteratorin classBaseText- Mappings:
Namespace Name Mixin selector official iteratorLes;iterator()Ljava/util/Iterator;intermediary iteratorLnet/minecraft/class_1441;iterator()Ljava/util/Iterator;named iteratorLnet/minecraft/text/BaseText;iterator()Ljava/util/Iterator;
-
asString
- Mappings:
Namespace Name Mixin selector official eLeu;e()Ljava/lang/String;intermediary method_5165Lnet/minecraft/class_1444;method_5165()Ljava/lang/String;named asStringLnet/minecraft/text/Text;asString()Ljava/lang/String;
-
copy
- Mappings:
Namespace Name Mixin selector official hLfb;h()Lfb;intermediary method_5235Lnet/minecraft/class_1455;method_5235()Lnet/minecraft/class_1455;named copyLnet/minecraft/text/TranslatableText;copy()Lnet/minecraft/text/TranslatableText;
-
equals
-
hashCode
public int hashCode() -
toString
-
getKey
- Mappings:
Namespace Name Mixin selector official iLfb;i()Ljava/lang/String;intermediary method_5236Lnet/minecraft/class_1455;method_5236()Ljava/lang/String;named getKeyLnet/minecraft/text/TranslatableText;getKey()Ljava/lang/String;
-
getArgs
- Mappings:
Namespace Name Mixin selector official jLfb;j()[Ljava/lang/Object;intermediary method_5237Lnet/minecraft/class_1455;method_5237()[Ljava/lang/Object;named getArgsLnet/minecraft/text/TranslatableText;getArgs()[Ljava/lang/Object;
-