类 TranslatableText

    • 字段详细资料

      • EMPTY_ARGUMENTS

        private static final Object[] EMPTY_ARGUMENTS
        Mappings:
        Namespace Name Mixin selector
        official d Lpb;d:[Ljava/lang/Object;
        intermediary field_24367 Lnet/minecraft/class_2588;field_24367:[Ljava/lang/Object;
        named EMPTY_ARGUMENTS Lnet/minecraft/text/TranslatableText;EMPTY_ARGUMENTS:[Ljava/lang/Object;
      • LITERAL_PERCENT_SIGN

        private static final StringVisitable LITERAL_PERCENT_SIGN
        Mappings:
        Namespace Name Mixin selector
        official e Lpb;e:Loq;
        intermediary field_24368 Lnet/minecraft/class_2588;field_24368:Lnet/minecraft/class_5348;
        named LITERAL_PERCENT_SIGN Lnet/minecraft/text/TranslatableText;LITERAL_PERCENT_SIGN:Lnet/minecraft/text/StringVisitable;
      • NULL_ARGUMENT

        private static final StringVisitable NULL_ARGUMENT
        Mappings:
        Namespace Name Mixin selector
        official f Lpb;f:Loq;
        intermediary field_24369 Lnet/minecraft/class_2588;field_24369:Lnet/minecraft/class_5348;
        named NULL_ARGUMENT Lnet/minecraft/text/TranslatableText;NULL_ARGUMENT:Lnet/minecraft/text/StringVisitable;
      • ARG_FORMAT

        private static final Pattern ARG_FORMAT
        Mappings:
        Namespace Name Mixin selector
        official k Lpb;k:Ljava/util/regex/Pattern;
        intermediary field_11872 Lnet/minecraft/class_2588;field_11872: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 g Lpb;g:Ljava/lang/String;
        intermediary field_11876 Lnet/minecraft/class_2588;field_11876:Ljava/lang/String;
        named key Lnet/minecraft/text/TranslatableText;key:Ljava/lang/String;
      • args

        private final Object[] args
        Mappings:
        Namespace Name Mixin selector
        official h Lpb;h:[Ljava/lang/Object;
        intermediary field_11875 Lnet/minecraft/class_2588;field_11875:[Ljava/lang/Object;
        named args Lnet/minecraft/text/TranslatableText;args:[Ljava/lang/Object;
      • languageCache

        @Nullable
        private @Nullable Language languageCache
        Mappings:
        Namespace Name Mixin selector
        official i Lpb;i:Lmq;
        intermediary field_25317 Lnet/minecraft/class_2588;field_25317:Lnet/minecraft/class_2477;
        named languageCache Lnet/minecraft/text/TranslatableText;languageCache:Lnet/minecraft/util/Language;
      • translations

        private final List<StringVisitable> translations
        Mappings:
        Namespace Name Mixin selector
        official j Lpb;j:Ljava/util/List;
        intermediary field_11877 Lnet/minecraft/class_2588;field_11877:Ljava/util/List;
        named translations Lnet/minecraft/text/TranslatableText;translations:Ljava/util/List;
    • 构造器详细资料

      • TranslatableText

        public TranslatableText​(String key)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lpb;<init>(Ljava/lang/String;)V
        intermediary <init> Lnet/minecraft/class_2588;<init>(Ljava/lang/String;)V
        named <init> Lnet/minecraft/text/TranslatableText;<init>(Ljava/lang/String;)V
      • TranslatableText

        public TranslatableText​(String key,
                                Object[] args)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lpb;<init>(Ljava/lang/String;[Ljava/lang/Object;)V
        intermediary <init> Lnet/minecraft/class_2588;<init>(Ljava/lang/String;[Ljava/lang/Object;)V
        named <init> Lnet/minecraft/text/TranslatableText;<init>(Ljava/lang/String;[Ljava/lang/Object;)V
    • 方法详细资料

      • updateTranslations

        private void updateTranslations()
        Mappings:
        Namespace Name Mixin selector
        official k Lpb;k()V
        intermediary method_11025 Lnet/minecraft/class_2588;method_11025()V
        named updateTranslations Lnet/minecraft/text/TranslatableText;updateTranslations()V
      • setTranslation

        private void setTranslation​(String translation)
        Mappings:
        Namespace Name Mixin selector
        official d Lpb;d(Ljava/lang/String;)V
        intermediary method_11024 Lnet/minecraft/class_2588;method_11024(Ljava/lang/String;)V
        named setTranslation Lnet/minecraft/text/TranslatableText;setTranslation(Ljava/lang/String;)V
      • getArg

        private StringVisitable getArg​(int index)
        Mappings:
        Namespace Name Mixin selector
        official b Lpb;b(I)Loq;
        intermediary method_29434 Lnet/minecraft/class_2588;method_29434(I)Lnet/minecraft/class_5348;
        named getArg Lnet/minecraft/text/TranslatableText;getArg(I)Lnet/minecraft/text/StringVisitable;
      • copy

        public TranslatableText copy()
        从接口复制的说明: Text
        Copies the text itself, excluding the styles or siblings.
        指定者:
        copy 在接口中 Text
        指定者:
        copy 在类中 BaseText
        Mappings:
        Namespace Name Mixin selector
        official h Lpb;h()Lpb;
        intermediary method_11020 Lnet/minecraft/class_2588;method_11020()Lnet/minecraft/class_2588;
        named copy Lnet/minecraft/text/TranslatableText;copy()Lnet/minecraft/text/TranslatableText;
      • visitSelf

        public <T> Optional<T> visitSelf​(StringVisitable.StyledVisitor<T> visitor,
                                         Style style)
        Visits the text itself.
        指定者:
        visitSelf 在接口中 Text
        参数:
        visitor - the visitor
        style - the current style
        返回:
        the visitor's return value
        另请参阅:
        Text.visit(StyledVisitor, Style)
        Mappings:
        Namespace Name Mixin selector
        official b Lon;b(Loq$b;Lox;)Ljava/util/Optional;
        intermediary method_27660 Lnet/minecraft/class_2561;method_27660(Lnet/minecraft/class_5348$class_5246;Lnet/minecraft/class_2583;)Ljava/util/Optional;
        named visitSelf Lnet/minecraft/text/Text;visitSelf(Lnet/minecraft/text/StringVisitable$StyledVisitor;Lnet/minecraft/text/Style;)Ljava/util/Optional;
      • visitSelf

        public <T> Optional<T> visitSelf​(StringVisitable.Visitor<T> visitor)
        Visits the text itself.
        指定者:
        visitSelf 在接口中 Text
        参数:
        visitor - the visitor
        返回:
        the visitor's return value
        另请参阅:
        Text.visit(Visitor)
        Mappings:
        Namespace Name Mixin selector
        official b Lon;b(Loq$a;)Ljava/util/Optional;
        intermediary method_27659 Lnet/minecraft/class_2561;method_27659(Lnet/minecraft/class_5348$class_5245;)Ljava/util/Optional;
        named visitSelf Lnet/minecraft/text/Text;visitSelf(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
        指定者:
        parse 在接口中 ParsableText
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official a Lop;a(Ldg;Lasl;I)Lot;
        intermediary method_10890 Lnet/minecraft/class_2566;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;
        named parse Lnet/minecraft/text/ParsableText;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
      • equals

        public boolean equals​(Object obj)
        覆盖:
        equals 在类中 BaseText
        Mappings:
        Namespace Name Mixin selector
        official equals Loj;equals(Ljava/lang/Object;)Z
        intermediary equals Lnet/minecraft/class_2554;equals(Ljava/lang/Object;)Z
        named equals Lnet/minecraft/text/BaseText;equals(Ljava/lang/Object;)Z
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 BaseText
        Mappings:
        Namespace Name Mixin selector
        official hashCode Loj;hashCode()I
        intermediary hashCode Lnet/minecraft/class_2554;hashCode()I
        named hashCode Lnet/minecraft/text/BaseText;hashCode()I
      • toString

        public String toString()
        覆盖:
        toString 在类中 BaseText
        Mappings:
        Namespace Name Mixin selector
        official toString Loj;toString()Ljava/lang/String;
        intermediary toString Lnet/minecraft/class_2554;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 Lpb;i()Ljava/lang/String;
        intermediary method_11022 Lnet/minecraft/class_2588;method_11022()Ljava/lang/String;
        named getKey Lnet/minecraft/text/TranslatableText;getKey()Ljava/lang/String;
      • getArgs

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