Class MutableComponent
java.lang.Object
net.minecraft.network.chat.MutableComponent
- All Implemented Interfaces:
Message, Component, FormattedText
-
Nested Class Summary
Nested classes/interfaces inherited from interface FormattedText
FormattedText.ContentConsumer<T>, FormattedText.StyledContentConsumer<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ComponentContentsprivate @Nullable Languageprivate Styleprivate FormattedCharSequenceFields inherited from interface FormattedText
EMPTY, STOP_ITERATION -
Constructor Summary
ConstructorsConstructorDescriptionMutableComponent(ComponentContents contents, List<Component> siblings, Style style) -
Method Summary
Modifier and TypeMethodDescriptionstatic MutableComponentcreate(ComponentContents contents) booleangetStyle()inthashCode()toString()withColor(int color) withStyle(UnaryOperator<Style> updater) withStyle(ChatFormatting format) withStyle(ChatFormatting... formats) Methods inherited from interface Component
contains, copy, getString, getString, plainCopy, toFlatList, toFlatList, tryCollapseToString, visit, visit
-
Field Details
-
contents
-
siblings
-
style
-
visualOrderText
-
decomposedWith
-
-
Constructor Details
-
MutableComponent
MutableComponent(ComponentContents contents, List<Component> siblings, Style style)
-
-
Method Details
-
create
-
getContents
- Specified by:
getContentsin interfaceComponent
-
getSiblings
- Specified by:
getSiblingsin interfaceComponent
-
setStyle
-
getStyle
-
append
-
append
-
withStyle
-
withStyle
-
withStyle
-
withStyle
-
withColor
-
withoutShadow
-
getVisualOrderText
- Specified by:
getVisualOrderTextin interfaceComponent
-
equals
-
hashCode
-
toString
-