Package net.minecraft.text
Class TranslatableTextContent
java.lang.Object
net.minecraft.text.TranslatableTextContent
- All Implemented Interfaces:
TextContent
- Mappings:
Namespace Name official ueintermediary net/minecraft/class_2588named net/minecraft/text/TranslatableTextContent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Patternprivate final Object[]static final Object[]private final Stringprivate static final StringVisitableprivate static final StringVisitableprivate List<StringVisitable>Fields inherited from interface net.minecraft.text.TextContent
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionTranslatableTextContent(String key, @Nullable String string, Object[] object) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate voidforEachPart(String translation, Consumer<StringVisitable> partsConsumer) private StringVisitablegetArg(int index) Object[]getArgs()getKey()inthashCode()parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) Parses this content into a basic mutable text without custom style or siblings.toString()private void<T> Optional<T>visit(StringVisitable.StyledVisitor<T> visitor, Style style) Visits this content.<T> Optional<T>visit(StringVisitable.Visitor<T> visitor) Visits this content.
-
Field Details
-
EMPTY_ARGUMENTS
- Mappings:
Namespace Name Mixin selector official bLue;b:[Ljava/lang/Object;intermediary field_24367Lnet/minecraft/class_2588;field_24367:[Ljava/lang/Object;named EMPTY_ARGUMENTSLnet/minecraft/text/TranslatableTextContent;EMPTY_ARGUMENTS:[Ljava/lang/Object;
-
LITERAL_PERCENT_SIGN
- Mappings:
Namespace Name Mixin selector official cLue;c:Lsy;intermediary field_24368Lnet/minecraft/class_2588;field_24368:Lnet/minecraft/class_5348;named LITERAL_PERCENT_SIGNLnet/minecraft/text/TranslatableTextContent;LITERAL_PERCENT_SIGN:Lnet/minecraft/text/StringVisitable;
-
NULL_ARGUMENT
- Mappings:
Namespace Name Mixin selector official dLue;d:Lsy;intermediary field_24369Lnet/minecraft/class_2588;field_24369:Lnet/minecraft/class_5348;named NULL_ARGUMENTLnet/minecraft/text/TranslatableTextContent;NULL_ARGUMENT:Lnet/minecraft/text/StringVisitable;
-
ARG_FORMAT
- Mappings:
Namespace Name Mixin selector official jLue;j:Ljava/util/regex/Pattern;intermediary field_11872Lnet/minecraft/class_2588;field_11872:Ljava/util/regex/Pattern;named ARG_FORMATLnet/minecraft/text/TranslatableTextContent;ARG_FORMAT:Ljava/util/regex/Pattern;
-
key
- Mappings:
Namespace Name Mixin selector official eLue;e:Ljava/lang/String;intermediary field_11876Lnet/minecraft/class_2588;field_11876:Ljava/lang/String;named keyLnet/minecraft/text/TranslatableTextContent;key:Ljava/lang/String;
-
field_41875
- Mappings:
Namespace Name Mixin selector official fLue;f:Ljava/lang/String;intermediary field_41875Lnet/minecraft/class_2588;field_41875:Ljava/lang/String;named field_41875Lnet/minecraft/text/TranslatableTextContent;field_41875:Ljava/lang/String;
-
args
- Mappings:
Namespace Name Mixin selector official gLue;g:[Ljava/lang/Object;intermediary field_11875Lnet/minecraft/class_2588;field_11875:[Ljava/lang/Object;named argsLnet/minecraft/text/TranslatableTextContent;args:[Ljava/lang/Object;
-
languageCache
- Mappings:
Namespace Name Mixin selector official hLue;h:Lqk;intermediary field_25317Lnet/minecraft/class_2588;field_25317:Lnet/minecraft/class_2477;named languageCacheLnet/minecraft/text/TranslatableTextContent;languageCache:Lnet/minecraft/util/Language;
-
translations
- Mappings:
Namespace Name Mixin selector official iLue;i:Ljava/util/List;intermediary field_11877Lnet/minecraft/class_2588;field_11877:Ljava/util/List;named translationsLnet/minecraft/text/TranslatableTextContent;translations:Ljava/util/List;
-
-
Constructor Details
-
TranslatableTextContent
- Mappings:
Namespace Name Mixin selector official <init>Lue;<init>(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Vintermediary <init>Lnet/minecraft/class_2588;<init>(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Vnamed <init>Lnet/minecraft/text/TranslatableTextContent;<init>(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
-
-
Method Details
-
updateTranslations
private void updateTranslations()- Mappings:
Namespace Name Mixin selector official dLue;d()Vintermediary method_11025Lnet/minecraft/class_2588;method_11025()Vnamed updateTranslationsLnet/minecraft/text/TranslatableTextContent;updateTranslations()V
-
forEachPart
- Mappings:
Namespace Name Mixin selector official aLue;a(Ljava/lang/String;Ljava/util/function/Consumer;)Vintermediary method_11024Lnet/minecraft/class_2588;method_11024(Ljava/lang/String;Ljava/util/function/Consumer;)Vnamed forEachPartLnet/minecraft/text/TranslatableTextContent;forEachPart(Ljava/lang/String;Ljava/util/function/Consumer;)V
-
getArg
- Mappings:
Namespace Name Mixin selector official aLue;a(I)Lsy;intermediary method_29434Lnet/minecraft/class_2588;method_29434(I)Lnet/minecraft/class_5348;named getArgLnet/minecraft/text/TranslatableTextContent;getArg(I)Lnet/minecraft/text/StringVisitable;
-
visit
Visits this content. Returns a value if the visitor terminates amid the visit, orOptional.empty()if it proceeds.- Specified by:
visitin interfaceTextContent- Returns:
Optional.empty()if the visit finished, or a terminating result from thevisitor- See Also:
- Mappings:
Namespace Name Mixin selector official aLsv;a(Lsy$b;Ltq;)Ljava/util/Optional;intermediary method_27660Lnet/minecraft/class_7417;method_27660(Lnet/minecraft/class_5348$class_5246;Lnet/minecraft/class_2583;)Ljava/util/Optional;named visitLnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$StyledVisitor;Lnet/minecraft/text/Style;)Ljava/util/Optional;
-
visit
Visits this content. Returns a value if the visitor terminates amid the visit, orOptional.empty()if it proceeds.- Specified by:
visitin interfaceTextContent- Returns:
Optional.empty()if the visit finished, or a terminating result from thevisitor- See Also:
- Mappings:
Namespace Name Mixin selector official aLsv;a(Lsy$a;)Ljava/util/Optional;intermediary method_27659Lnet/minecraft/class_7417;method_27659(Lnet/minecraft/class_5348$class_5245;)Ljava/util/Optional;named visitLnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$Visitor;)Ljava/util/Optional;
-
parse
public MutableText parse(@Nullable @Nullable ServerCommandSource source, @Nullable @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException Parses this content into a basic mutable text without custom style or siblings. The resulting text may or may not have this content.- Specified by:
parsein interfaceTextContent- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLsv;a(Ldn;Lbee;I)Lth;intermediary method_10890Lnet/minecraft/class_7417;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;named parseLnet/minecraft/text/TextContent;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
-
equals
-
hashCode
public int hashCode() -
toString
-
getKey
- Mappings:
Namespace Name Mixin selector official aLue;a()Ljava/lang/String;intermediary method_11022Lnet/minecraft/class_2588;method_11022()Ljava/lang/String;named getKeyLnet/minecraft/text/TranslatableTextContent;getKey()Ljava/lang/String;
-
method_48323
- Mappings:
Namespace Name Mixin selector official bLue;b()Ljava/lang/String;intermediary method_48323Lnet/minecraft/class_2588;method_48323()Ljava/lang/String;named method_48323Lnet/minecraft/text/TranslatableTextContent;method_48323()Ljava/lang/String;
-
getArgs
- Mappings:
Namespace Name Mixin selector official cLue;c()[Ljava/lang/Object;intermediary method_11023Lnet/minecraft/class_2588;method_11023()[Ljava/lang/Object;named getArgsLnet/minecraft/text/TranslatableTextContent;getArgs()[Ljava/lang/Object;
-