类 BaseText
- java.lang.Object
-
- net.minecraft.text.BaseText
-
- 所有已实现的接口:
com.mojang.brigadier.Message,MutableText,StringVisitable,Text
- 直接已知子类:
KeybindText,LiteralText,NbtText,ScoreText,SelectorText,TranslatableText
public abstract class BaseText extends Object implements MutableText
- Mappings:
Namespace Name official ojintermediary net/minecraft/class_2554named net/minecraft/text/BaseText
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 net.minecraft.text.StringVisitable
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>
-
从接口继承的嵌套类/接口 net.minecraft.text.Text
Text.Serializer
-
-
字段概要
字段 修饰符和类型 字段 说明 private OrderedTextorderedTextprivate @Nullable LanguagepreviousLanguageprotected List<Text>siblingsprivate Stylestyle-
从接口继承的字段 net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT
-
-
构造器概要
构造器 构造器 说明 BaseText()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 MutableTextappend(Text text)Appends a text to this text's siblings.OrderedTextasOrderedText()StringasString()Returns the string representation of this text itself, excluding siblings.abstract BaseTextcopy()Copies the text itself, excluding the styles or siblings.booleanequals(Object obj)List<Text>getSiblings()Returns the siblings of this text.StylegetStyle()Returns the style of this text.inthashCode()MutableTextsetStyle(Style style)Sets the style of this text.MutableTextshallowCopy()Copies the text itself, the style, and the siblings.StringtoString()-
从接口继承的方法 net.minecraft.text.Text
asTruncatedString, getString, method_36136, visit, visit, visitSelf, visitSelf
-
-
-
-
字段详细资料
-
siblings
protected final List<Text> siblings
- Mappings:
Namespace Name Mixin selector official aLoj;a:Ljava/util/List;intermediary field_11729Lnet/minecraft/class_2554;field_11729:Ljava/util/List;named siblingsLnet/minecraft/text/BaseText;siblings:Ljava/util/List;
-
orderedText
private OrderedText orderedText
- Mappings:
Namespace Name Mixin selector official dLoj;d:Lagj;intermediary field_26623Lnet/minecraft/class_2554;field_26623:Lnet/minecraft/class_5481;named orderedTextLnet/minecraft/text/BaseText;orderedText:Lnet/minecraft/text/OrderedText;
-
previousLanguage
@Nullable private @Nullable Language previousLanguage
- Mappings:
Namespace Name Mixin selector official eLoj;e:Lmq;intermediary field_26624Lnet/minecraft/class_2554;field_26624:Lnet/minecraft/class_2477;named previousLanguageLnet/minecraft/text/BaseText;previousLanguage:Lnet/minecraft/util/Language;
-
style
private Style style
- Mappings:
Namespace Name Mixin selector official fLoj;f:Lox;intermediary field_11730Lnet/minecraft/class_2554;field_11730:Lnet/minecraft/class_2583;named styleLnet/minecraft/text/BaseText;style:Lnet/minecraft/text/Style;
-
-
方法详细资料
-
append
public MutableText append(Text text)
Appends a text to this text's siblings.- 指定者:
append在接口中MutableText- 参数:
text- the sibling- Mappings:
Namespace Name Mixin selector official aLot;a(Lon;)Lot;intermediary method_10852Lnet/minecraft/class_5250;method_10852(Lnet/minecraft/class_2561;)Lnet/minecraft/class_5250;named appendLnet/minecraft/text/MutableText;append(Lnet/minecraft/text/Text;)Lnet/minecraft/text/MutableText;
-
asString
public String asString()
Returns the string representation of this text itself, excluding siblings.
-
getSiblings
public List<Text> getSiblings()
Returns the siblings of this text.- 指定者:
getSiblings在接口中Text- Mappings:
Namespace Name Mixin selector official bLon;b()Ljava/util/List;intermediary method_10855Lnet/minecraft/class_2561;method_10855()Ljava/util/List;named getSiblingsLnet/minecraft/text/Text;getSiblings()Ljava/util/List;
-
setStyle
public MutableText setStyle(Style style)
Sets the style of this text.- 指定者:
setStyle在接口中MutableText- Mappings:
Namespace Name Mixin selector official aLot;a(Lox;)Lot;intermediary method_10862Lnet/minecraft/class_5250;method_10862(Lnet/minecraft/class_2583;)Lnet/minecraft/class_5250;named setStyleLnet/minecraft/text/MutableText;setStyle(Lnet/minecraft/text/Style;)Lnet/minecraft/text/MutableText;
-
getStyle
public Style getStyle()
Returns the style of this text.
-
copy
public abstract BaseText copy()
从接口复制的说明:TextCopies the text itself, excluding the styles or siblings.
-
shallowCopy
public final MutableText shallowCopy()
Copies the text itself, the style, and the siblings.A shallow copy is made for the siblings.
- 指定者:
shallowCopy在接口中Text- Mappings:
Namespace Name Mixin selector official eLon;e()Lot;intermediary method_27661Lnet/minecraft/class_2561;method_27661()Lnet/minecraft/class_5250;named shallowCopyLnet/minecraft/text/Text;shallowCopy()Lnet/minecraft/text/MutableText;
-
asOrderedText
public OrderedText asOrderedText()
- 指定者:
asOrderedText在接口中Text- Mappings:
Namespace Name Mixin selector official fLon;f()Lagj;intermediary method_30937Lnet/minecraft/class_2561;method_30937()Lnet/minecraft/class_5481;named asOrderedTextLnet/minecraft/text/Text;asOrderedText()Lnet/minecraft/text/OrderedText;
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
-