net.minecraft.network.chat

public class TranslatableComponent

extends BaseComponent implements ContextAwareComponent

All mapped superinterfaces:

MutableComponent, Component, FormattedText, ContextAwareComponent

ne
net.minecraft.network.chat.TranslatableComponent
net.minecraft.class_2588
net.minecraft.text.TranslatableText
net.minecraft.util.text.TranslationTextComponent
net.minecraft.server.v1_16_R1.ChatMessage

Field summary

Modifier and TypeField
private static final Object[]
d
NO_ARGS
field_24367
EMPTY_ARGUMENTS
field_240753_d_
private static final FormattedText
e
TEXT_PERCENT
field_24368
LITERAL_PERCENT_SIGN
field_240754_e_
private static final FormattedText
f
TEXT_NULL
field_24369
NULL_ARGUMENT
field_240755_f_
private final String
g
key
field_11876
key
field_150276_d
key
private final Object[]
h
args
field_11875
args
field_150277_e
args
private Language
i
decomposedWith
field_25317
languageCache
field_240756_i_
private final List<FormattedText>
j
decomposedParts
field_11877
translations
field_150278_b
private static final Pattern
k
FORMAT_PATTERN
field_11872
ARG_FORMAT
field_150279_c

Constructor summary

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

Method summary

Modifier and TypeMethod
private void
j()
decompose()
method_11025()
updateTranslations()
func_150270_g()
private void
a(String arg0, kz arg1)
decomposeTemplate(String arg0, Language arg1)
method_11024(String arg0, class_2477 arg1)
setTranslation(String translation, Language language)
func_240758_a_(String arg0, LanguageMap arg1)
private FormattedText
a(int arg0, kz arg1)
getArgument(int arg0, Language arg1)
method_29434(int arg0, class_2477 arg1)
method_29434(int arg0, Language arg1)
func_240757_a_(int arg0, LanguageMap arg1)
public TranslatableComponent
g()
plainCopy()
method_11020()
copy()
func_230531_f_()
public <T> Optional<T>
b(mu$a<T> arg0)
visitSelf(FormattedText$ContentConsumer<T> arg0)
method_27659(class_5348$class_5245<T> arg0)
visitSelf(StringRenderable$Visitor<T> arg0)
func_230533_b_(ITextProperties$ITextAcceptor<T> arg0)
public MutableComponent
a(cz arg0, aom 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)
func_230535_a_(CommandSource arg0, Entity arg1, int arg2)
public String
h()
getKey()
method_11022()
getKey()
func_150268_i()
getKey()
public Object[]
i()
getArgs()
method_11023()
getArgs()
func_150271_j()
getArgs()
public <T> Optional<T>
b(mu$b<T> arg0, nb arg1)
visitSelf(FormattedText$StyledContentConsumer<T> arg0, Style arg1)
method_27660(class_5348$class_5246<T> arg0, class_2583 arg1)
visitSelf(StringRenderable$StyledVisitor<T> arg0, Style arg1)
func_230534_b_(ITextProperties$IStyledTextAcceptor<T> arg0, Style arg1)