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_312579_, Object... p_312922_) 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_312086_) static Component
translationArg
(Date p_313239_) static Component
translationArg
(UUID p_311149_) static Component
translationArg
(ResourceLocation p_311439_) static Component
translationArg
(ChunkPos p_312850_) 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
-