类 LiteralText

  • 所有已实现的接口:
    com.mojang.brigadier.Message, MutableText, StringVisitable, Text

    public class LiteralText
    extends BaseText
    Mappings:
    Namespace Name
    official pa
    intermediary net/minecraft/class_2585
    named net/minecraft/text/LiteralText
    • 字段详细资料

      • EMPTY

        public static final Text EMPTY
        Mappings:
        Namespace Name Mixin selector
        official d Lpa;d:Lon;
        intermediary field_24366 Lnet/minecraft/class_2585;field_24366:Lnet/minecraft/class_2561;
        named EMPTY Lnet/minecraft/text/LiteralText;EMPTY:Lnet/minecraft/text/Text;
      • string

        private final String string
        Mappings:
        Namespace Name Mixin selector
        official e Lpa;e:Ljava/lang/String;
        intermediary field_11862 Lnet/minecraft/class_2585;field_11862:Ljava/lang/String;
        named string Lnet/minecraft/text/LiteralText;string:Ljava/lang/String;
    • 构造器详细资料

      • LiteralText

        public LiteralText​(String string)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lpa;<init>(Ljava/lang/String;)V
        intermediary <init> Lnet/minecraft/class_2585;<init>(Ljava/lang/String;)V
        named <init> Lnet/minecraft/text/LiteralText;<init>(Ljava/lang/String;)V
    • 方法详细资料

      • getRawString

        public String getRawString()
        Mappings:
        Namespace Name Mixin selector
        official h Lpa;h()Ljava/lang/String;
        intermediary method_10993 Lnet/minecraft/class_2585;method_10993()Ljava/lang/String;
        named getRawString Lnet/minecraft/text/LiteralText;getRawString()Ljava/lang/String;
      • asString

        public String asString()
        Returns the string representation of this text itself, excluding siblings.
        指定者:
        asString 在接口中 Text
        覆盖:
        asString 在类中 BaseText
        Mappings:
        Namespace Name Mixin selector
        official a Lon;a()Ljava/lang/String;
        intermediary method_10851 Lnet/minecraft/class_2561;method_10851()Ljava/lang/String;
        named asString Lnet/minecraft/text/Text;asString()Ljava/lang/String;
      • copy

        public LiteralText copy()
        从接口复制的说明: Text
        Copies the text itself, excluding the styles or siblings.
        指定者:
        copy 在接口中 Text
        指定者:
        copy 在类中 BaseText
        Mappings:
        Namespace Name Mixin selector
        official i Lpa;i()Lpa;
        intermediary method_10992 Lnet/minecraft/class_2585;method_10992()Lnet/minecraft/class_2585;
        named copy Lnet/minecraft/text/LiteralText;copy()Lnet/minecraft/text/LiteralText;
      • 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
      • 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;