Package net.minecraft.network.chat
Class MutableComponent
java.lang.Object
net.minecraft.network.chat.MutableComponent
- All Implemented Interfaces:
com.mojang.brigadier.Message
,Component
,FormattedText
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.chat.Component
Component.Serializer, Component.SerializerAdapter
Nested classes/interfaces inherited from interface net.minecraft.network.chat.FormattedText
FormattedText.ContentConsumer<T>, FormattedText.StyledContentConsumer<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ComponentContents
private Language
private Style
private FormattedCharSequence
Fields inherited from interface net.minecraft.network.chat.FormattedText
EMPTY, STOP_ITERATION
-
Constructor Summary
ConstructorDescriptionMutableComponent
(ComponentContents p_237200_, List<Component> p_237201_, Style p_237202_) -
Method Summary
Modifier and TypeMethodDescriptionstatic MutableComponent
create
(ComponentContents p_237205_) boolean
getStyle()
int
hashCode()
toString()
withColor
(int p_307552_) withStyle
(UnaryOperator<Style> p_130939_) withStyle
(ChatFormatting p_130941_) withStyle
(ChatFormatting... p_130945_) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.chat.Component
contains, copy, getString, getString, plainCopy, toFlatList, toFlatList, tryCollapseToString, visit, visit
-
Field Details
-
contents
-
siblings
-
style
-
visualOrderText
-
decomposedWith
-
-
Constructor Details
-
MutableComponent
MutableComponent(ComponentContents p_237200_, List<Component> p_237201_, Style p_237202_)
-
-
Method Details
-
create
-
getContents
- Specified by:
getContents
in interfaceComponent
-
getSiblings
- Specified by:
getSiblings
in interfaceComponent
-
setStyle
-
getStyle
-
append
-
append
-
withStyle
-
withStyle
-
withStyle
-
withStyle
-
withColor
-
getVisualOrderText
- Specified by:
getVisualOrderText
in interfaceComponent
-
equals
-
hashCode
public int hashCode() -
toString
-