net.minecraft.network.chat

public class TranslatableComponent

extends BaseComponent implements ContextAwareComponent

All mapped superinterfaces:

MutableComponent, Component, FormattedText, ContextAwareComponent

qy
net.minecraft.network.chat.TranslatableComponent
net.minecraft.class_2588
net.minecraft.text.TranslatableText
net.minecraft.src.C_5026_
net.minecraft.network.chat.ChatMessage

Field summary

Modifier and TypeField
private static final Object[]
d
NO_ARGS
field_24367
EMPTY_ARGUMENTS
f_131295_
private static final FormattedText
e
TEXT_PERCENT
field_24368
LITERAL_PERCENT_SIGN
f_131296_
private static final FormattedText
f
TEXT_NULL
field_24369
NULL_ARGUMENT
f_131297_
private final String
g
key
field_11876
key
f_131298_
private final Object[]
h
args
field_11875
args
f_131299_
private Language
i
decomposedWith
field_25317
languageCache
f_131300_
private List<FormattedText>
j
decomposedParts
field_11877
translations
f_131301_
private static final Pattern
k
FORMAT_PATTERN
field_11872
ARG_FORMAT
f_131302_

Constructor summary

ModifierConstructor
public (String key)
public (String key, Object... args)

Method summary

Modifier and TypeMethod
private void
k()
decompose()
method_11025()
updateTranslations()
m_131330_()
private void
a(String arg0, Consumer<qn> arg1)
decomposeTemplate(String arg0, Consumer<FormattedText> arg1)
method_11024(String arg0, Consumer<class_5348> arg1)
forEachPart(String translation, Consumer<StringVisitable> partsConsumer)
m_200005_(String p_200007_, Consumer<C_5000_> arg1)
private FormattedText
b(int arg0)
getArgument(int arg0)
method_29434(int arg0)
getArg(int index)
m_131313_(int arg0)
public TranslatableComponent
h()
plainCopy()
method_11020()
copy()
m_6879_()
public <T> Optional<T>
b(qn$b<T> arg0, qu arg1)
visitSelf(FormattedText$StyledContentConsumer<T> arg0, Style arg1)
method_27660(class_5348$class_5246<T> arg0, class_2583 arg1)
visitSelf(StringVisitable$StyledVisitor<T> arg0, Style arg1)
m_7452_(C_5000_$C_5006_<T> p_131319_, C_5020_ arg1)
public <T> Optional<T>
b(qn$a<T> arg0)
visitSelf(FormattedText$ContentConsumer<T> arg0)
method_27659(class_5348$class_5245<T> arg0)
visitSelf(StringVisitable$Visitor<T> arg0)
m_5655_(C_5000_$C_5005_<T> arg0)
public MutableComponent
a(dm arg0, axk arg1, int arg2)
resolve(CommandSourceStack arg0, Entity arg1, int arg2)
method_10890(class_2168 arg0, class_1297 arg1, int arg2)
parse(ServerCommandSource arg0, Entity arg1, int arg2)
m_5638_(C_2969_ p_131311_, C_507_ p_131312_, int arg2)
public String
i()
getKey()
method_11022()
getKey()
m_131328_()
public Object[]
j()
getArgs()
method_11023()
getArgs()
m_131329_()