net.minecraft.network.chat.contents

public class TranslatableContents

implements ComponentContents

ya
net.minecraft.network.chat.contents.TranslatableContents
net.minecraft.class_2588
net.minecraft.unmapped.C_fdvjwnmn
net.minecraft.text.TranslatableTextContent
net.minecraft.text.component.TranslatableComponent
net.minecraft.src.C_213523_
net.minecraft.network.chat.contents.TranslatableContents

Field summary

Modifier and TypeField
public static final Object[]
a
NO_ARGS
field_24367
f_ozobodue
EMPTY_ARGUMENTS
EMPTY_ARGS
f_237494_
private static final com.mojang.serialization.Codec<Object>
d
PRIMITIVE_ARG_CODEC
field_46635
f_omftoutr
OBJECT_ARGUMENT_CODEC
PRIMITIVE_ARGUMENT_CODEC
f_303238_
private static final com.mojang.serialization.Codec<Object>
e
ARG_CODEC
field_46636
f_wmxpdrxt
ARGUMENT_CODEC
ARGUMENT_CODEC
f_302806_
public static final com.mojang.serialization.MapCodec<TranslatableContents>
b
CODEC
field_46633
f_ikouuvof
CODEC
CODEC
f_302832_
public static final ComponentContents$Type<TranslatableContents>
c
TYPE
field_46634
f_meekorlg
TYPE
TYPE
f_303657_
private static final FormattedText
f
TEXT_PERCENT
field_24368
f_rjlzload
LITERAL_PERCENT_SIGN
PERCENT
f_237495_
private static final FormattedText
g
TEXT_NULL
field_24369
f_rpjzsbrs
NULL_ARGUMENT
NULL
f_237496_
private final String
h
key
field_11876
f_uvddklyh
key
key
f_237497_
private final String
i
fallback
field_41875
f_awlkgjza
fallback
fallback
f_263792_
private final Object[]
j
args
field_11875
f_aovoazph
args
args
f_237498_
private Language
k
decomposedWith
field_25317
f_wgdxckhz
languageCache
language
f_237499_
private List<FormattedText>
l
decomposedParts
field_11877
f_vwbvusrh
translations
visitors
f_237500_
private static final Pattern
m
FORMAT_PATTERN
field_11872
f_brxauvga
ARG_FORMAT
FORMAT_PATTERN
f_237501_

Constructor summary

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

Method summary

Modifier and TypeMethod
private static com.mojang.serialization.DataResult<Object>
b(Object arg0)
filterAllowedArguments(Object arg0)
method_54245(Object arg0)
m_vpasldlf(Object arg0)
validate(Object object)
validateArgument(Object object)
m_307068_(Object p_310291_)
public static boolean
a(Object arg0)
isAllowedPrimitiveArgument(Object arg0)
method_54238(Object arg0)
m_ryhzxcdd(Object arg0)
isPrimitive(Object argument)
isBoxedPrimitive(Object object)
m_306839_(Object p_313191_)
private static Optional<List<Object>>
a(Object[] arg0)
adjustArgs(Object[] arg0)
method_54244(Object[] arg0)
m_uutjzmpi(Object[] arg0)
toOptionalList(Object[] args)
toOptionalList(Object[] args)
m_307058_(Object[] p_310705_)
private static []
a(Optional<List<Object>> arg0)
adjustArgs(Optional<List<Object>> arg0)
method_54241(Optional<List<Object>> arg0)
m_zmzqwqao(Optional<List<Object>> arg0)
toArray(Optional<List<Object>> args)
fromOptionalList(Optional<List<Object>> args)
m_306736_(Optional<List<Object>> p_309492_)
private static TranslatableContents
a(String arg0, Optional<String> arg1, Optional<List<Object>> arg2)
create(String arg0, Optional<String> arg1, Optional<List<Object>> arg2)
method_54239(String arg0, Optional<String> arg1, Optional<List<Object>> arg2)
m_gzrdaogn(String arg0, Optional<String> arg1, Optional<List<Object>> arg2)
of(String key, Optional<String> fallback, Optional<List<Object>> args)
create(String key, Optional<String> fallback, Optional<List<Object>> args)
m_307802_(String p_311603_, Optional<String> p_311479_, Optional<List<Object>> p_312087_)
public ComponentContents$Type<?>
a()
type()
method_54163()
m_utpteufh()
getType()
type()
m_304650_()
private void
e()
decompose()
method_11025()
m_dlvgcoah()
updateTranslations()
translate()
m_237524_()
private void
a(String arg0, Consumer<wu> arg1)
decomposeTemplate(String arg0, Consumer<FormattedText> arg1)
method_11024(String arg0, Consumer<class_5348> arg1)
m_thyrutws(String arg0, Consumer<C_xzalvetc> arg1)
forEachPart(String translation, Consumer<StringVisitable> partsConsumer)
translate(String string, Consumer<StringVisitable> adder)
m_237515_(String p_237517_, Consumer<C_5000_> arg1)
private FormattedText
a(int arg0)
getArgument(int arg0)
method_29434(int arg0)
m_eefpgkga(int arg0)
getArg(int index)
getArgument(int index)
m_237509_(int arg0)
public <T> Optional<T>
a(wu$b<T> arg0, xm arg1)
visit(FormattedText$StyledContentConsumer<T> arg0, Style arg1)
method_27660(class_5348$class_5246<T> arg0, class_2583 arg1)
m_pikjboje(C_xzalvetc$C_rnsgpsnw<T> arg0, C_cpwnhism arg1)
visit(StringVisitable$StyledVisitor<T> arg0, Style 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(wu$a<T> arg0)
visit(FormattedText$ContentConsumer<T> arg0)
method_27659(class_5348$class_5245<T> arg0)
m_byogystu(C_xzalvetc$C_delqnnjz<T> arg0)
visit(StringVisitable$Visitor<T> arg0)
visit(StringVisitable$Visitor<T> arg0)
m_213874_(C_5000_$C_5005_<T> arg0)
public MutableComponent
a(ex arg0, bum arg1, int arg2)
resolve(CommandSourceStack arg0, Entity arg1, int arg2)
method_10890(class_2168 arg0, class_1297 arg1, int arg2)
m_jylyfbgl(C_pennblrk arg0, C_astfners arg1, int arg2)
parse(ServerCommandSource arg0, Entity arg1, int arg2)
resolve(ServerCommandSource arg0, Entity arg1, int arg2)
m_213698_(C_2969_ p_237513_, C_507_ p_237514_, int arg2)
public String
b()
getKey()
method_11022()
m_wxxesxfp()
getKey()
getKey()
m_237508_()
public String
c()
getFallback()
method_48323()
m_jqsynoae()
getFallback()
getFallback()
m_264577_()
public Object[]
d()
getArgs()
method_11023()
m_oudaoofq()
getArgs()
getArgs()
m_237523_()