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
- Mappings:
Namespace Name official oo
intermediary net/minecraft/class_2554
named 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 inherited from interface net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAppends a text to this text's siblings.asString()
Returns the string representation of this text itself, excluding siblings.abstract BaseText
copy()
Copies the text itself, excluding the styles or siblings.boolean
Returns the siblings of this text.getStyle()
Returns the style of this text.int
hashCode()
Sets the style of this text.Copies the text itself, the style, and the siblings.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.text.MutableText
append, fillStyle, formatted, formatted, styled
Methods inherited from interface net.minecraft.text.Text
asTruncatedString, getString, getWithStyle, visit, visit, visitSelf, visitSelf
-
Field Details
-
siblings
- Mappings:
Namespace Name Mixin selector official a
Loo;a:Ljava/util/List;
intermediary field_11729
Lnet/minecraft/class_2554;field_11729:Ljava/util/List;
named siblings
Lnet/minecraft/text/BaseText;siblings:Ljava/util/List;
-
orderedText
- Mappings:
Namespace Name Mixin selector official d
Loo;d:Lags;
intermediary field_26623
Lnet/minecraft/class_2554;field_26623:Lnet/minecraft/class_5481;
named orderedText
Lnet/minecraft/text/BaseText;orderedText:Lnet/minecraft/text/OrderedText;
-
previousLanguage
- Mappings:
Namespace Name Mixin selector official e
Loo;e:Lmv;
intermediary field_26624
Lnet/minecraft/class_2554;field_26624:Lnet/minecraft/class_2477;
named previousLanguage
Lnet/minecraft/text/BaseText;previousLanguage:Lnet/minecraft/util/Language;
-
style
- Mappings:
Namespace Name Mixin selector official f
Loo;f:Lpc;
intermediary field_11730
Lnet/minecraft/class_2554;field_11730:Lnet/minecraft/class_2583;
named style
Lnet/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:
append
in interfaceMutableText
- Parameters:
text
- the sibling- Mappings:
Namespace Name Mixin selector official a
Loy;a(Los;)Loy;
intermediary method_10852
Lnet/minecraft/class_5250;method_10852(Lnet/minecraft/class_2561;)Lnet/minecraft/class_5250;
named append
Lnet/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:
getSiblings
in interfaceText
- Mappings:
Namespace Name Mixin selector official b
Los;b()Ljava/util/List;
intermediary method_10855
Lnet/minecraft/class_2561;method_10855()Ljava/util/List;
named getSiblings
Lnet/minecraft/text/Text;getSiblings()Ljava/util/List;
-
setStyle
Sets the style of this text.- Specified by:
setStyle
in interfaceMutableText
- Mappings:
Namespace Name Mixin selector official a
Loy;a(Lpc;)Loy;
intermediary method_10862
Lnet/minecraft/class_5250;method_10862(Lnet/minecraft/class_2583;)Lnet/minecraft/class_5250;
named setStyle
Lnet/minecraft/text/MutableText;setStyle(Lnet/minecraft/text/Style;)Lnet/minecraft/text/MutableText;
-
getStyle
Returns the style of this text. -
copy
Description copied from interface:Text
Copies 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:
shallowCopy
in interfaceText
- Mappings:
Namespace Name Mixin selector official e
Los;e()Loy;
intermediary method_27661
Lnet/minecraft/class_2561;method_27661()Lnet/minecraft/class_5250;
named shallowCopy
Lnet/minecraft/text/Text;shallowCopy()Lnet/minecraft/text/MutableText;
-
asOrderedText
- Specified by:
asOrderedText
in interfaceText
- Mappings:
Namespace Name Mixin selector official f
Los;f()Lags;
intermediary method_30937
Lnet/minecraft/class_2561;method_30937()Lnet/minecraft/class_5481;
named asOrderedText
Lnet/minecraft/text/Text;asOrderedText()Lnet/minecraft/text/OrderedText;
-
equals
-
hashCode
public int hashCode() -
toString
-