接口 MutableText
-
- 所有超级接口:
com.mojang.brigadier.Message,StringVisitable,Text
- 所有已知实现类:
BaseText,KeybindText,LiteralText,NbtText,NbtText.BlockNbtText,NbtText.EntityNbtText,NbtText.StorageNbtText,ScoreText,SelectorText,TranslatableText
public interface MutableText extends Text
A text with mutation operations.- Mappings:
Namespace Name official otintermediary net/minecraft/class_5250named net/minecraft/text/MutableText
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 net.minecraft.text.StringVisitable
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>
-
从接口继承的嵌套类/接口 net.minecraft.text.Text
Text.Serializer
-
-
字段概要
-
从接口继承的字段 net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default MutableTextappend(String text)Appends a literal text with contenttextto this text's siblings.MutableTextappend(Text text)Appends a text to this text's siblings.default MutableTextfillStyle(Style styleOverride)Fills the absent parts of this text's style with definitions fromstyleOverride.default MutableTextformatted(Formatting formatting)Add a formatting to this text's style.default MutableTextformatted(Formatting[] formattings)Adds some formattings to this text's style.MutableTextsetStyle(Style style)Sets the style of this text.default MutableTextstyled(UnaryOperator<Style> styleUpdater)Updates the style of this text.-
从接口继承的方法 net.minecraft.text.Text
asOrderedText, asString, asTruncatedString, copy, getSiblings, getString, getStyle, method_36136, shallowCopy, visit, visit, visitSelf, visitSelf
-
-
-
-
方法详细资料
-
setStyle
MutableText setStyle(Style style)
Sets the style of this text.- 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;
-
append
default MutableText append(String text)
Appends a literal text with contenttextto this text's siblings.- 参数:
text- the literal text content- Mappings:
Namespace Name Mixin selector official cLot;c(Ljava/lang/String;)Lot;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
MutableText append(Text text)
Appends a text to this text's siblings.- 参数:
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;
-
styled
default MutableText styled(UnaryOperator<Style> styleUpdater)
Updates the style of this text.- 参数:
styleUpdater- the style updater- 另请参阅:
Text.getStyle(),setStyle(Style)- Mappings:
Namespace Name Mixin selector official aLot;a(Ljava/util/function/UnaryOperator;)Lot;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
default MutableText fillStyle(Style styleOverride)
Fills the absent parts of this text's style with definitions fromstyleOverride.- 参数:
styleOverride- the style that provides definitions for absent definitions in this text's style- 另请参阅:
Style.withParent(Style)- Mappings:
Namespace Name Mixin selector official cLot;c(Lox;)Lot;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
default MutableText formatted(Formatting[] formattings)
Adds some formattings to this text's style.- 参数:
formattings- an array of formattings- Mappings:
Namespace Name Mixin selector official aLot;a([Lp;)Lot;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
default MutableText formatted(Formatting formatting)
Add a formatting to this text's style.- 参数:
formatting- a formatting- Mappings:
Namespace Name Mixin selector official aLot;a(Lp;)Lot;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;
-
-