net.minecraft.network.chat

public interface Component

extends com.mojang.brigadier.Message, FormattedText

rm
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 MutableComponent
d()
plainCopy()
method_27662()
copyContentOnly()
m_6879_()
default MutableComponent
e()
copy()
method_27661()
copy()
m_6881_()
FormattedCharSequence
f()
getVisualOrderText()
method_30937()
asOrderedText()
m_7532_()
default <T> Optional<T>
a(rp$b<T> arg0, rv 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_5006_<T> p_130680_, C_5020_ arg1)
default <T> Optional<T>
a(rp$a<T> arg0)
visit(FormattedText$ContentConsumer<T> arg0)
method_27657(class_5348$class_5245<T> arg0)
visit(StringVisitable$Visitor<T> arg0)
m_5651_(C_5005_<T> arg0)
default List<Component>
a(rv arg0)
toFlatList(Style arg0)
method_36136(class_2583 arg0)
getWithStyle(Style style)
m_178405_(C_5020_ 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
g()
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<rm> arg2, sa 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
a(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<rm> 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_)