Package net.minecraft.text
Interface MutableText
- All Superinterfaces:
com.mojang.brigadier.Message
,StringVisitable
,Text
- All Known Implementing Classes:
BaseText
,KeybindText
,LiteralText
,NbtText
,NbtText.BlockNbtText
,NbtText.EntityNbtText
,NbtText.StorageNbtText
,ScoreText
,SelectorText
,TranslatableText
A text with mutation operations.
- Mappings:
Namespace Name official oy
intermediary net/minecraft/class_5250
named 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
Fields inherited from interface net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT
-
Method Summary
Modifier and TypeMethodDescriptiondefault MutableText
Appends a literal text with contenttext
to this text's siblings.Appends a text to this text's siblings.default MutableText
Fills the absent parts of this text's style with definitions fromstyleOverride
.default MutableText
formatted(Formatting formatting)
Add a formatting to this text's style.default MutableText
formatted(Formatting[] formattings)
Adds some formattings to this text's style.Sets the style of this text.default MutableText
styled(UnaryOperator<Style> styleUpdater)
Updates the style of this text.Methods inherited from interface net.minecraft.text.Text
asOrderedText, asString, asTruncatedString, copy, getSiblings, getString, getStyle, getWithStyle, shallowCopy, visit, visit, visitSelf, visitSelf
-
Method Details
-
setStyle
Sets the style of this text.- 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;
-
append
Appends a literal text with contenttext
to this text's siblings.- Parameters:
text
- the literal text content- Mappings:
Namespace Name Mixin selector official c
Loy;c(Ljava/lang/String;)Loy;
intermediary method_27693
Lnet/minecraft/class_5250;method_27693(Ljava/lang/String;)Lnet/minecraft/class_5250;
named append
Lnet/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 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;
-
styled
Updates the style of this text.- Parameters:
styleUpdater
- the style updater- See Also:
Text.getStyle()
,setStyle(Style)
- Mappings:
Namespace Name Mixin selector official a
Loy;a(Ljava/util/function/UnaryOperator;)Loy;
intermediary method_27694
Lnet/minecraft/class_5250;method_27694(Ljava/util/function/UnaryOperator;)Lnet/minecraft/class_5250;
named styled
Lnet/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:
Style.withParent(Style)
- Mappings:
Namespace Name Mixin selector official c
Loy;c(Lpc;)Loy;
intermediary method_27696
Lnet/minecraft/class_5250;method_27696(Lnet/minecraft/class_2583;)Lnet/minecraft/class_5250;
named fillStyle
Lnet/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 a
Loy;a([Lp;)Loy;
intermediary method_27695
Lnet/minecraft/class_5250;method_27695([Lnet/minecraft/class_124;)Lnet/minecraft/class_5250;
named formatted
Lnet/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 a
Loy;a(Lp;)Loy;
intermediary method_27692
Lnet/minecraft/class_5250;method_27692(Lnet/minecraft/class_124;)Lnet/minecraft/class_5250;
named formatted
Lnet/minecraft/text/MutableText;formatted(Lnet/minecraft/util/Formatting;)Lnet/minecraft/text/MutableText;
-