Class LiteralText

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

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

    • string

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

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

      public LiteralText copy()
      Mappings:
      Namespace Name Mixin selector
      official h Lfa;h()Lfa;
      intermediary method_5231 Lnet/minecraft/class_1454;method_5231()Lnet/minecraft/class_1454;
      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 Les;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1441;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 Les;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_1441;toString()Ljava/lang/String;
      named toString Lnet/minecraft/text/BaseText;toString()Ljava/lang/String;