net.minecraft.network.chat

public interface Component

extends com.mojang.brigadier.Message, FormattedText

xp
net.minecraft.network.chat.Component
net.minecraft.class_2561
net.minecraft.text.Text
net.minecraft.src.C_4996_
net.minecraft.network.chat.IChatBaseComponent

Method summary

Modifier and TypeMethod
Style
a()
getStyle()
method_10866()
getStyle()
m_7383_()
ComponentContents
b()
getContents()
method_10851()
getContent()
m_214077_()
default String
getString()
getString()
getString()
default String
a(int arg0)
getString(int arg0)
method_10858(int arg0)
asTruncatedString(int length)
m_130668_(int arg0)
List<Component>
c()
getSiblings()
method_10855()
getSiblings()
m_7360_()
default String
d()
tryCollapseToString()
method_54160()
getLiteralString()
m_306448_()
default MutableComponent
e()
plainCopy()
method_27662()
copyContentOnly()
m_6879_()
default MutableComponent
f()
copy()
method_27661()
copy()
m_6881_()
FormattedCharSequence
g()
getVisualOrderText()
method_30937()
asOrderedText()
m_7532_()
default <T> Optional<T>
a(xu$b<T> arg0, ym arg1)
visit(FormattedText$StyledContentConsumer<T> arg0, Style arg1)
method_27658(class_5348$class_5246<T> arg0, class_2583 arg1)
visit(StringVisitable$StyledVisitor<T> arg0, Style arg1)
m_7451_(C_5000_$C_5006_<T> p_130680_, C_5020_ arg1)
default <T> Optional<T>
a(xu$a<T> arg0)
visit(FormattedText$ContentConsumer<T> arg0)
method_27657(class_5348$class_5245<T> arg0)
visit(StringVisitable$Visitor<T> arg0)
m_5651_(C_5000_$C_5005_<T> arg0)
default List<Component>
h()
toFlatList()
method_44746()
withoutStyle()
m_240407_()
default List<Component>
a(ym arg0)
toFlatList(Style arg0)
method_36136(class_2583 arg0)
getWithStyle(Style style)
m_178405_(C_5020_ arg0)
default boolean
a(xp arg0)
contains(Component arg0)
method_44745(class_2561 arg0)
contains(Text text)
m_240452_(C_4996_ arg0)
static Component
a(String arg0)
nullToEmpty(String arg0)
method_30163(String arg0)
of(String string)
m_130674_(String p_130675_)
static MutableComponent
b(String arg0)
literal(String arg0)
method_43470(String arg0)
literal(String string)
m_237113_(String p_237114_)
static MutableComponent
c(String arg0)
translatable(String arg0)
method_43471(String arg0)
translatable(String key)
m_237115_(String p_237116_)
static MutableComponent
a(String arg0, Object... arg1)
translatable(String arg0, Object... arg1)
method_43469(String arg0, Object... arg1)
translatable(String key, Object... args)
m_237110_(String p_237111_, Object... p_237112_)
static MutableComponent
b(String arg0, Object... arg1)
translatableEscape(String arg0, Object... arg1)
method_54159(String arg0, Object... arg1)
stringifiedTranslatable(String key, Object... args)
m_307043_(String p_312579_, Object... p_312922_)
static MutableComponent
a(String arg0, String arg1)
translatableWithFallback(String arg0, String arg1)
method_48321(String arg0, String arg1)
translatableWithFallback(String key, String fallback)
m_264568_(String p_265747_, String p_265287_)
static MutableComponent
a(String arg0, String arg1, Object... arg2)
translatableWithFallback(String arg0, String arg1, Object... arg2)
method_48322(String arg0, String arg1, Object... arg2)
translatableWithFallback(String key, String fallback, Object... args)
m_264642_(String p_265449_, String p_265281_, Object... p_265785_)
static MutableComponent
i()
empty()
method_43473()
empty()
m_237119_()
static MutableComponent
d(String arg0)
keybind(String arg0)
method_43472(String arg0)
keybind(String string)
m_237117_(String p_237118_)
static MutableComponent
a(String arg0, boolean arg1, Optional<xp> arg2, yr arg3)
nbt(String arg0, boolean arg1, Optional<Component> arg2, DataSource arg3)
method_43468(String arg0, boolean arg1, Optional<class_2561> arg2, class_7419 arg3)
nbt(String rawPath, boolean interpret, Optional<Text> separator, NbtDataSource dataSource)
m_237105_(String p_237106_, boolean p_237107_, Optional<C_4996_> p_237108_, C_213514_ p_237109_)
static MutableComponent
b(String arg0, String arg1)
score(String arg0, String arg1)
method_43466(String arg0, String arg1)
score(String name, String objective)
m_237099_(String p_237100_, String p_237101_)
static MutableComponent
a(String arg0, Optional<xp> arg1)
selector(String arg0, Optional<Component> arg1)
method_43467(String arg0, Optional<class_2561> arg1)
selector(String pattern, Optional<Text> separator)
m_237102_(String p_237103_, Optional<C_4996_> p_237104_)
static Component
a(Date arg0)
translationArg(Date arg0)
method_54157(Date arg0)
of(Date date)
m_306983_(Date p_313239_)
static Component
a(com.mojang.brigadier.Message arg0)
translationArg(com.mojang.brigadier.Message arg0)
method_54155(com.mojang.brigadier.Message arg0)
of(com.mojang.brigadier.Message message)
m_304916_(com.mojang.brigadier.Message p_312086_)
static Component
a(UUID arg0)
translationArg(UUID arg0)
method_54158(UUID arg0)
of(UUID uuid)
m_306730_(UUID p_311149_)
static Component
a(alf arg0)
translationArg(ResourceLocation arg0)
method_54154(class_2960 arg0)
of(Identifier id)
m_305236_(C_5265_ p_311439_)
static Component
a(dbh arg0)
translationArg(ChunkPos arg0)
method_54156(class_1923 arg0)
of(ChunkPos pos)
m_307221_(C_1560_ p_312850_)