Class LiteralText

java.lang.Object
net.minecraft.text.BaseText
net.minecraft.text.LiteralText
All Implemented Interfaces:
Iterable, Text

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

    • string

      private final String string
      Mappings:
      Namespace Name Mixin selector
      official b Lhy;b:Ljava/lang/String;
      intermediary field_8505 Lnet/minecraft/class_1989;field_8505: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> Lhy;<init>(Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_1989;<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 g Lhy;g()Ljava/lang/String;
      intermediary method_7525 Lnet/minecraft/class_1989;method_7525()Ljava/lang/String;
      named getRawString Lnet/minecraft/text/LiteralText;getRawString()Ljava/lang/String;
    • asString

      public String asString()
      Mappings:
      Namespace Name Mixin selector
      official e Lho;e()Ljava/lang/String;
      intermediary method_7473 Lnet/minecraft/class_1982;method_7473()Ljava/lang/String;
      named asString Lnet/minecraft/text/Text;asString()Ljava/lang/String;
    • copy

      public LiteralText copy()
      Mappings:
      Namespace Name Mixin selector
      official h Lhy;h()Lhy;
      intermediary method_7526 Lnet/minecraft/class_1989;method_7526()Lnet/minecraft/class_1989;
      named copy Lnet/minecraft/text/LiteralText;copy()Lnet/minecraft/text/LiteralText;
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official equals Lhj;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1977;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
      Mappings:
      Namespace Name Mixin selector
      official toString Lhj;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_1977;toString()Ljava/lang/String;
      named toString Lnet/minecraft/text/BaseText;toString()Ljava/lang/String;