类 LiteralText
- java.lang.Object
-
- net.minecraft.text.BaseText
-
- net.minecraft.text.LiteralText
-
- 所有已实现的接口:
com.mojang.brigadier.Message,MutableText,StringVisitable,Text
public class LiteralText extends BaseText
- Mappings:
Namespace Name official paintermediary net/minecraft/class_2585named net/minecraft/text/LiteralText
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 net.minecraft.text.StringVisitable
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>
-
从接口继承的嵌套类/接口 net.minecraft.text.Text
Text.Serializer
-
-
字段概要
字段 修饰符和类型 字段 说明 static TextEMPTYprivate Stringstring-
从接口继承的字段 net.minecraft.text.StringVisitable
TERMINATE_VISIT
-
-
构造器概要
构造器 构造器 说明 LiteralText(String string)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringasString()Returns the string representation of this text itself, excluding siblings.LiteralTextcopy()Copies the text itself, excluding the styles or siblings.booleanequals(Object obj)StringgetRawString()StringtoString()-
从类继承的方法 net.minecraft.text.BaseText
append, asOrderedText, getSiblings, getStyle, hashCode, setStyle, shallowCopy
-
从接口继承的方法 net.minecraft.text.Text
asTruncatedString, getString, method_36136, visit, visit, visitSelf, visitSelf
-
-
-
-
字段详细资料
-
EMPTY
public static final Text EMPTY
- Mappings:
Namespace Name Mixin selector official dLpa;d:Lon;intermediary field_24366Lnet/minecraft/class_2585;field_24366:Lnet/minecraft/class_2561;named EMPTYLnet/minecraft/text/LiteralText;EMPTY:Lnet/minecraft/text/Text;
-
string
private final String string
- Mappings:
Namespace Name Mixin selector official eLpa;e:Ljava/lang/String;intermediary field_11862Lnet/minecraft/class_2585;field_11862:Ljava/lang/String;named stringLnet/minecraft/text/LiteralText;string:Ljava/lang/String;
-
-
构造器详细资料
-
LiteralText
public LiteralText(String string)
- Mappings:
Namespace Name Mixin selector official <init>Lpa;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_2585;<init>(Ljava/lang/String;)Vnamed <init>Lnet/minecraft/text/LiteralText;<init>(Ljava/lang/String;)V
-
-
方法详细资料
-
getRawString
public String getRawString()
- Mappings:
Namespace Name Mixin selector official hLpa;h()Ljava/lang/String;intermediary method_10993Lnet/minecraft/class_2585;method_10993()Ljava/lang/String;named getRawStringLnet/minecraft/text/LiteralText;getRawString()Ljava/lang/String;
-
asString
public String asString()
Returns the string representation of this text itself, excluding siblings.
-
copy
public LiteralText copy()
从接口复制的说明:TextCopies the text itself, excluding the styles or siblings.
-
equals
public boolean equals(Object obj)
-
toString
public String toString()
-
-