Package net.minecraft.text
Class BaseText
java.lang.Object
net.minecraft.text.BaseText
- All Implemented Interfaces:
com.mojang.brigadier.Message,MutableText,StringVisitable,Text
- Direct Known Subclasses:
KeybindText,LiteralText,NbtText,ScoreText,SelectorText,TranslatableText
public abstract class BaseText extends Object implements MutableText
- Mappings:
Namespace Name official oeintermediary net/minecraft/class_2554named net/minecraft/text/BaseText
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.StringVisitable
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>Nested classes/interfaces inherited from interface net.minecraft.text.Text
Text.Serializer -
Field Summary
Fields Modifier and Type Field Description private OrderedTextorderedTextprivate LanguagepreviousLanguageprotected List<Text>siblingsprivate StylestyleFields inherited from interface net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT -
Constructor Summary
Constructors Constructor Description BaseText() -
Method Summary
Modifier and Type Method Description 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()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
siblings
- Mappings:
Namespace Name Mixin selector official aLoe;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
- Mappings:
Namespace Name Mixin selector official dLoe;d:Lafs;intermediary field_26623Lnet/minecraft/class_2554;field_26623:Lnet/minecraft/class_5481;named orderedTextLnet/minecraft/text/BaseText;orderedText:Lnet/minecraft/text/OrderedText;
-
previousLanguage
- Mappings:
Namespace Name Mixin selector official eLoe;e:Lml;intermediary field_26624Lnet/minecraft/class_2554;field_26624:Lnet/minecraft/class_2477;named previousLanguageLnet/minecraft/text/BaseText;previousLanguage:Lnet/minecraft/util/Language;
-
style
- Mappings:
Namespace Name Mixin selector official fLoe;f:Los;intermediary field_11730Lnet/minecraft/class_2554;field_11730:Lnet/minecraft/class_2583;named styleLnet/minecraft/text/BaseText;style:Lnet/minecraft/text/Style;
-
-
Constructor Details
-
BaseText
public BaseText()
-
-
Method Details
-
append
Appends a text to this text's siblings.- Specified by:
appendin interfaceMutableText- Parameters:
text- the sibling- Mappings:
Namespace Name Mixin selector official aLoo;a(Loi;)Loo;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
Returns the string representation of this text itself, excluding siblings. -
getSiblings
Returns the siblings of this text.- Specified by:
getSiblingsin interfaceText- Mappings:
Namespace Name Mixin selector official bLoi;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
Sets the style of this text.- Specified by:
setStylein interfaceMutableText- Mappings:
Namespace Name Mixin selector official aLoo;a(Los;)Loo;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
Returns the style of this text. -
copy
Description copied from interface:TextCopies the text itself, excluding the styles or siblings. -
shallowCopy
Copies the text itself, the style, and the siblings.A shallow copy is made for the siblings.
- Specified by:
shallowCopyin interfaceText- Mappings:
Namespace Name Mixin selector official eLoi;e()Loo;intermediary method_27661Lnet/minecraft/class_2561;method_27661()Lnet/minecraft/class_5250;named shallowCopyLnet/minecraft/text/Text;shallowCopy()Lnet/minecraft/text/MutableText;
-
asOrderedText
- Specified by:
asOrderedTextin interfaceText- Mappings:
Namespace Name Mixin selector official fLoi;f()Lafs;intermediary method_30937Lnet/minecraft/class_2561;method_30937()Lnet/minecraft/class_5481;named asOrderedTextLnet/minecraft/text/Text;asOrderedText()Lnet/minecraft/text/OrderedText;
-
equals
-
hashCode
public int hashCode() -
toString
-