Class LiteralText

java.lang.Object
net.minecraft.text.BaseText
net.minecraft.text.LiteralText
All Implemented Interfaces:
com.mojang.brigadier.Message, MutableText, StringVisitable, Text

public class LiteralText extends BaseText
Mappings:
Namespace Name
official qm
intermediary net/minecraft/class_2585
named net/minecraft/text/LiteralText
  • Field Details

    • EMPTY

      public static final Text EMPTY
      Mappings:
      Namespace Name Mixin selector
      official d Lqm;d:Lpz;
      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 Lqm;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;
  • Constructor Details

    • LiteralText

      public LiteralText(String string)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lqm;<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
  • Method Details

    • getRawString

      public String getRawString()
      Mappings:
      Namespace Name Mixin selector
      official h Lqm;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.
      Specified by:
      asString in interface Text
      Overrides:
      asString in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official a Lpz;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()
      Description copied from interface: Text
      Copies the text itself, excluding the styles or siblings.
      Specified by:
      copy in interface Text
      Specified by:
      copy in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official i Lqm;i()Lqm;
      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 o)
      Overrides:
      equals in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official equals Lpv;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()
      Overrides:
      toString in class BaseText