Package net.minecraft.text
Class MutableText
java.lang.Object
net.minecraft.text.MutableText
- All Implemented Interfaces:
com.mojang.brigadier.Message,StringVisitable,Text
A text with mutation operations.
- Mappings:
Namespace Name official rdintermediary net/minecraft/class_5250named net/minecraft/text/MutableText
-
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
FieldsFields inherited from interface net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppends a literal text with contenttextto this text's siblings.Appends a text to this text's siblings.booleanFills the absent parts of this text's style with definitions fromstyleOverride.formatted(Formatting formatting) Add a formatting to this text's style.formatted(Formatting[] formattings) Adds some formattings to this text's style.Returns the siblings of this text.getStyle()Returns the style of this text.inthashCode()static MutableTextmethod_43477(class_7417 class_7417) Sets the style of this text.styled(UnaryOperator<Style> styleUpdater) Updates the style of this text.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.text.Text
asTruncatedString, copy, getString, getWithStyle, shallowCopy, visit, visit
-
Field Details
-
field_39005
- Mappings:
Namespace Name Mixin selector official cLrd;c:Lqz;intermediary field_39005Lnet/minecraft/class_5250;field_39005:Lnet/minecraft/class_7417;named field_39005Lnet/minecraft/text/MutableText;field_39005:Lnet/minecraft/class_7417;
-
siblings
- Mappings:
Namespace Name Mixin selector official dLrd;d:Ljava/util/List;intermediary field_39006Lnet/minecraft/class_5250;field_39006:Ljava/util/List;named siblingsLnet/minecraft/text/MutableText;siblings:Ljava/util/List;
-
style
- Mappings:
Namespace Name Mixin selector official eLrd;e:Lre;intermediary field_39007Lnet/minecraft/class_5250;field_39007:Lnet/minecraft/class_2583;named styleLnet/minecraft/text/MutableText;style:Lnet/minecraft/text/Style;
-
ordered
- Mappings:
Namespace Name Mixin selector official fLrd;f:Lajy;intermediary field_39008Lnet/minecraft/class_5250;field_39008:Lnet/minecraft/class_5481;named orderedLnet/minecraft/text/MutableText;ordered:Lnet/minecraft/text/OrderedText;
-
language
- Mappings:
Namespace Name Mixin selector official gLrd;g:Lou;intermediary field_39009Lnet/minecraft/class_5250;field_39009:Lnet/minecraft/class_2477;named languageLnet/minecraft/text/MutableText;language:Lnet/minecraft/util/Language;
-
-
Constructor Details
-
MutableText
MutableText(class_7417 class_7417, List<Text> siblings, Style style) - Mappings:
Namespace Name Mixin selector official <init>Lrd;<init>(Lqz;Ljava/util/List;Lre;)Vintermediary <init>Lnet/minecraft/class_5250;<init>(Lnet/minecraft/class_7417;Ljava/util/List;Lnet/minecraft/class_2583;)Vnamed <init>Lnet/minecraft/text/MutableText;<init>(Lnet/minecraft/class_7417;Ljava/util/List;Lnet/minecraft/text/Style;)V
-
-
Method Details
-
method_43477
- Mappings:
Namespace Name Mixin selector official aLrd;a(Lqz;)Lrd;intermediary method_43477Lnet/minecraft/class_5250;method_43477(Lnet/minecraft/class_7417;)Lnet/minecraft/class_5250;named method_43477Lnet/minecraft/text/MutableText;method_43477(Lnet/minecraft/class_7417;)Lnet/minecraft/text/MutableText;
-
method_10851
- Specified by:
method_10851in interfaceText- Mappings:
Namespace Name Mixin selector official bLqy;b()Lqz;intermediary method_10851Lnet/minecraft/class_2561;method_10851()Lnet/minecraft/class_7417;named method_10851Lnet/minecraft/text/Text;method_10851()Lnet/minecraft/class_7417;
-
getSiblings
Returns the siblings of this text.- Specified by:
getSiblingsin interfaceText- Mappings:
Namespace Name Mixin selector official cLqy;c()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.- Mappings:
Namespace Name Mixin selector official bLrd;b(Lre;)Lrd;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. -
append
Appends a literal text with contenttextto this text's siblings.- Parameters:
text- the literal text content- Mappings:
Namespace Name Mixin selector official fLrd;f(Ljava/lang/String;)Lrd;intermediary method_27693Lnet/minecraft/class_5250;method_27693(Ljava/lang/String;)Lnet/minecraft/class_5250;named appendLnet/minecraft/text/MutableText;append(Ljava/lang/String;)Lnet/minecraft/text/MutableText;
-
append
Appends a text to this text's siblings.- Parameters:
text- the sibling- Mappings:
Namespace Name Mixin selector official aLrd;a(Lqy;)Lrd;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;
-
styled
Updates the style of this text.- Parameters:
styleUpdater- the style updater- See Also:
- Mappings:
Namespace Name Mixin selector official aLrd;a(Ljava/util/function/UnaryOperator;)Lrd;intermediary method_27694Lnet/minecraft/class_5250;method_27694(Ljava/util/function/UnaryOperator;)Lnet/minecraft/class_5250;named styledLnet/minecraft/text/MutableText;styled(Ljava/util/function/UnaryOperator;)Lnet/minecraft/text/MutableText;
-
fillStyle
Fills the absent parts of this text's style with definitions fromstyleOverride.- Parameters:
styleOverride- the style that provides definitions for absent definitions in this text's style- See Also:
- Mappings:
Namespace Name Mixin selector official cLrd;c(Lre;)Lrd;intermediary method_27696Lnet/minecraft/class_5250;method_27696(Lnet/minecraft/class_2583;)Lnet/minecraft/class_5250;named fillStyleLnet/minecraft/text/MutableText;fillStyle(Lnet/minecraft/text/Style;)Lnet/minecraft/text/MutableText;
-
formatted
Adds some formattings to this text's style.- Parameters:
formattings- an array of formattings- Mappings:
Namespace Name Mixin selector official aLrd;a([Lp;)Lrd;intermediary method_27695Lnet/minecraft/class_5250;method_27695([Lnet/minecraft/class_124;)Lnet/minecraft/class_5250;named formattedLnet/minecraft/text/MutableText;formatted([Lnet/minecraft/util/Formatting;)Lnet/minecraft/text/MutableText;
-
formatted
Add a formatting to this text's style.- Parameters:
formatting- a formatting- Mappings:
Namespace Name Mixin selector official aLrd;a(Lp;)Lrd;intermediary method_27692Lnet/minecraft/class_5250;method_27692(Lnet/minecraft/class_124;)Lnet/minecraft/class_5250;named formattedLnet/minecraft/text/MutableText;formatted(Lnet/minecraft/util/Formatting;)Lnet/minecraft/text/MutableText;
-
asOrderedText
- Specified by:
asOrderedTextin interfaceText- Mappings:
Namespace Name Mixin selector official fLqy;f()Lajy;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
-