Package net.minecraft.network.chat
Interface Component
- All Superinterfaces:
FormattedText
,com.mojang.brigadier.Message
- All Known Subinterfaces:
MutableComponent
- All Known Implementing Classes:
BaseComponent
,KeybindComponent
,NbtComponent
,NbtComponent.BlockNbtComponent
,NbtComponent.EntityNbtComponent
,NbtComponent.StorageNbtComponent
,ScoreComponent
,SelectorComponent
,TextComponent
,TranslatableComponent
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.chat.FormattedText
FormattedText.ContentConsumer<T>, FormattedText.StyledContentConsumer<T>
-
Field Summary
Fields inherited from interface net.minecraft.network.chat.FormattedText
EMPTY, STOP_ITERATION
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
default String
default String
getString(int p_130669_)
getStyle()
static Component
nullToEmpty(String p_130675_)
toFlatList(Style p_178406_)
default <T> Optional<T>
visit(FormattedText.ContentConsumer<T> p_130677_)
default <T> Optional<T>
visit(FormattedText.StyledContentConsumer<T> p_130679_, Style p_130680_)
default <T> Optional<T>
visitSelf(FormattedText.ContentConsumer<T> p_130681_)
default <T> Optional<T>
visitSelf(FormattedText.StyledContentConsumer<T> p_130682_, Style p_130683_)
-
Method Details
-
getStyle
Style getStyle() -
getContents
String getContents() -
getString
- Specified by:
getString
in interfaceFormattedText
- Specified by:
getString
in interfacecom.mojang.brigadier.Message
-
getString
-
getSiblings
-
plainCopy
MutableComponent plainCopy() -
copy
MutableComponent copy() -
getVisualOrderText
FormattedCharSequence getVisualOrderText() -
visit
- Specified by:
visit
in interfaceFormattedText
-
visit
- Specified by:
visit
in interfaceFormattedText
-
visitSelf
default <T> Optional<T> visitSelf(FormattedText.StyledContentConsumer<T> p_130682_, Style p_130683_) -
visitSelf
-
toFlatList
-
nullToEmpty
-