Package net.minecraft.network.chat
Interface Component
- All Superinterfaces:
FormattedText
,com.mojang.brigadier.Message
- All Known Implementing Classes:
MutableComponent
-
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 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
translatableWithFallback
(String p_265747_, String p_265287_) static MutableComponent
translatableWithFallback
(String p_265449_, String p_265281_, Object... p_265785_) 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
-
plainCopy
-
copy
-
getVisualOrderText
FormattedCharSequence getVisualOrderText() -
visit
- Specified by:
visit
in interfaceFormattedText
-
visit
- Specified by:
visit
in interfaceFormattedText
-
toFlatList
-
toFlatList
-
contains
-
nullToEmpty
-
literal
-
translatable
-
translatable
-
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
-