net.minecraft.network.chat.contents

public class TranslatableContents

implements ComponentContents

ut
net.minecraft.network.chat.contents.TranslatableContents
net.minecraft.class_2588
net.minecraft.text.TranslatableTextContent
net.minecraft.src.C_213523_
net.minecraft.network.chat.contents.TranslatableContents

Field summary

Modifier and TypeField
public static final Object[]
b
NO_ARGS
field_24367
EMPTY_ARGUMENTS
f_237494_
private static final FormattedText
c
TEXT_PERCENT
field_24368
LITERAL_PERCENT_SIGN
f_237495_
private static final FormattedText
d
TEXT_NULL
field_24369
NULL_ARGUMENT
f_237496_
private final String
e
key
field_11876
key
f_237497_
private final String
f
fallback
field_41875
fallback
f_263792_
private final Object[]
g
args
field_11875
args
f_237498_
private Language
h
decomposedWith
field_25317
languageCache
f_237499_
private List<FormattedText>
i
decomposedParts
field_11877
translations
f_237500_
private static final Pattern
j
FORMAT_PATTERN
field_11872
ARG_FORMAT
f_237501_

Constructor summary

ModifierConstructor
public (String key, String fallback, Object[] args)

Method summary

Modifier and TypeMethod
private void
d()
decompose()
method_11025()
updateTranslations()
m_237524_()
private void
a(String arg0, Consumer<tn> arg1)
decomposeTemplate(String arg0, Consumer<FormattedText> arg1)
method_11024(String arg0, Consumer<class_5348> arg1)
forEachPart(String translation, Consumer<StringVisitable> partsConsumer)
m_237515_(String p_237517_, Consumer<C_5000_> arg1)
private FormattedText
a(int arg0)
getArgument(int arg0)
method_29434(int arg0)
getArg(int index)
m_237509_(int arg0)
public <T> Optional<T>
a(tn$b<T> arg0, uf arg1)
visit(FormattedText$StyledContentConsumer<T> arg0, Style arg1)
method_27660(class_5348$class_5246<T> arg0, class_2583 arg1)
visit(StringVisitable$StyledVisitor<T> arg0, Style arg1)
m_213724_(C_5000_$C_5006_<T> p_237522_, C_5020_ arg1)
public <T> Optional<T>
a(tn$a<T> arg0)
visit(FormattedText$ContentConsumer<T> arg0)
method_27659(class_5348$class_5245<T> arg0)
visit(StringVisitable$Visitor<T> arg0)
m_213874_(C_5000_$C_5005_<T> arg0)
public MutableComponent
a(dr arg0, bfh 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_213698_(C_2969_ p_237513_, C_507_ p_237514_, int arg2)
public String
a()
getKey()
method_11022()
getKey()
m_237508_()
public String
b()
getFallback()
method_48323()
getFallback()
m_264577_()
public Object[]
c()
getArgs()
method_11023()
getArgs()
m_237523_()