Package net.minecraft.network.chat
Interface Component
- All Superinterfaces:
FormattedText
,com.mojang.brigadier.Message
- All Known Implementing Classes:
MutableComponent
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
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 TypeMethodDescriptiondefault boolean
default MutableComponent
copy()
static MutableComponent
empty()
default String
default String
getString
(int p_130669_) getStyle()
static MutableComponent
static MutableComponent
static MutableComponent
nbt
(String p_237106_, boolean p_237107_, Optional<Component> p_237108_, DataSource p_237109_) static Component
nullToEmpty
(String p_130675_) default MutableComponent
static MutableComponent
static MutableComponent
toFlatList
(Style p_178406_) static MutableComponent
translatable
(String p_237116_) static MutableComponent
translatable
(String p_237111_, Object... p_237112_) static MutableComponent
translatableEscape
(String p_304683_, Object... p_304399_) static MutableComponent
translatableWithFallback
(String p_265747_, String p_265287_) static MutableComponent
translatableWithFallback
(String p_265449_, String p_265281_, Object... p_265785_) static Component
translationArg
(com.mojang.brigadier.Message p_304620_) static Component
translationArg
(Date p_304461_) static Component
translationArg
(UUID p_304730_) static Component
translationArg
(ResourceLocation p_304849_) static Component
translationArg
(ChunkPos p_304675_) default String
default <T> Optional
<T> visit
(FormattedText.ContentConsumer<T> p_130677_) default <T> Optional
<T> visit
(FormattedText.StyledContentConsumer<T> p_130679_, Style p_130680_)
-
Method Details
-
getStyle
Style getStyle() -
getContents
ComponentContents getContents() -
getString
- Specified by:
getString
in interfaceFormattedText
- Specified by:
getString
in interfacecom.mojang.brigadier.Message
-
getString
-
getSiblings
-
tryCollapseToString
-
plainCopy
-
copy
-
getVisualOrderText
FormattedCharSequence getVisualOrderText() -
visit
- Specified by:
visit
in interfaceFormattedText
-
visit
- Specified by:
visit
in interfaceFormattedText
-
toFlatList
-
toFlatList
-
contains
-
nullToEmpty
-
literal
-
translatable
-
translatable
-
translatableEscape
-
translatableWithFallback
-
translatableWithFallback
static MutableComponent translatableWithFallback(String p_265449_, @Nullable String p_265281_, Object... p_265785_) -
empty
-
keybind
-
nbt
static MutableComponent nbt(String p_237106_, boolean p_237107_, Optional<Component> p_237108_, DataSource p_237109_) -
score
-
selector
-
translationArg
-
translationArg
-
translationArg
-
translationArg
-
translationArg
-