net.minecraft.network.chat

public interface Component

extends com.mojang.brigadier.Message, FormattedText

xv
net.minecraft.network.chat.Component
net.minecraft.class_2561
net.minecraft.text.Text
net.minecraft.network.chat.IChatBaseComponent

Method summary

Modifier and TypeMethod
Style
a()
getStyle()
method_10866()
getStyle()
ComponentContents
b()
getContents()
method_10851()
getContent()
default String
getString()
getString()
default String
a(int arg0)
getString(int arg0)
method_10858(int arg0)
asTruncatedString(int length)
List<Component>
c()
getSiblings()
method_10855()
getSiblings()
default String
d()
tryCollapseToString()
method_54160()
getLiteralString()
default MutableComponent
e()
plainCopy()
method_27662()
copyContentOnly()
default MutableComponent
f()
copy()
method_27661()
copy()
FormattedCharSequence
g()
getVisualOrderText()
method_30937()
asOrderedText()
default <T> Optional<T>
a(ya$b<T> arg0, ys 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)
default <T> Optional<T>
a(ya$a<T> arg0)
visit(FormattedText$ContentConsumer<T> arg0)
method_27657(class_5348$class_5245<T> arg0)
visit(StringVisitable$Visitor<T> arg0)
default List<Component>
h()
toFlatList()
method_44746()
withoutStyle()
default List<Component>
a(ys arg0)
toFlatList(Style arg0)
method_36136(class_2583 arg0)
getWithStyle(Style style)
default boolean
a(xv arg0)
contains(Component arg0)
method_44745(class_2561 arg0)
contains(Text text)
static Component
a(String arg0)
nullToEmpty(String arg0)
method_30163(String arg0)
of(String string)
static MutableComponent
b(String arg0)
literal(String arg0)
method_43470(String arg0)
literal(String string)
static MutableComponent
c(String arg0)
translatable(String arg0)
method_43471(String arg0)
translatable(String key)
static MutableComponent
a(String arg0, Object... arg1)
translatable(String arg0, Object... arg1)
method_43469(String arg0, Object... arg1)
translatable(String key, Object... args)
static MutableComponent
b(String arg0, Object... arg1)
translatableEscape(String arg0, Object... arg1)
method_54159(String arg0, Object... arg1)
stringifiedTranslatable(String key, Object... args)
static MutableComponent
a(String arg0, String arg1)
translatableWithFallback(String arg0, String arg1)
method_48321(String arg0, String arg1)
translatableWithFallback(String key, String fallback)
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)
static MutableComponent
i()
empty()
method_43473()
empty()
static MutableComponent
d(String arg0)
keybind(String arg0)
method_43472(String arg0)
keybind(String string)
static MutableComponent
a(String arg0, boolean arg1, Optional<xv> arg2, yx 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)
static MutableComponent
a(hn arg0, String arg1)
score(SelectorPattern arg0, String arg1)
method_62790(class_10104 arg0, String arg1)
score(ParsedSelector selector, String objective)
static MutableComponent
b(String arg0, String arg1)
score(String arg0, String arg1)
method_43466(String arg0, String arg1)
score(String name, String objective)
static MutableComponent
a(hn arg0, Optional<xv> arg1)
selector(SelectorPattern arg0, Optional<Component> arg1)
method_43467(class_10104 arg0, Optional<class_2561> arg1)
selector(ParsedSelector selector, Optional<Text> separator)
static Component
a(Date arg0)
translationArg(Date arg0)
method_54157(Date arg0)
of(Date date)
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)
static Component
a(UUID arg0)
translationArg(UUID arg0)
method_54158(UUID arg0)
of(UUID uuid)
static Component
a(alz arg0)
translationArg(ResourceLocation arg0)
method_54154(class_2960 arg0)
of(Identifier id)
static Component
a(dgo arg0)
translationArg(ChunkPos arg0)
method_54156(class_1923 arg0)
of(ChunkPos pos)
static Component
a(URI arg0)
translationArg(URI arg0)
method_61110(URI arg0)
of(URI uri)