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 ClassesNested 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 Stringdefault StringgetString(int p_130669_)getStyle()static ComponentnullToEmpty(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:
getStringin interfaceFormattedText- Specified by:
getStringin interfacecom.mojang.brigadier.Message
-
getString
-
getSiblings
-
plainCopy
MutableComponent plainCopy() -
copy
MutableComponent copy() -
getVisualOrderText
FormattedCharSequence getVisualOrderText() -
visit
- Specified by:
visitin interfaceFormattedText
-
visit
- Specified by:
visitin interfaceFormattedText
-
visitSelf
default <T> Optional<T> visitSelf(FormattedText.StyledContentConsumer<T> p_130682_, Style p_130683_) -
visitSelf
-
toFlatList
-
nullToEmpty
-