net.minecraft.network.chat.contents

public class TranslatableContents

implements ComponentContents

za
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[]
a
NO_ARGS
field_24367
EMPTY_ARGUMENTS
f_237494_
private static final com.mojang.serialization.Codec<Object>
d
PRIMITIVE_ARG_CODEC
field_46635
OBJECT_ARGUMENT_CODEC
f_303238_
private static final com.mojang.serialization.Codec<Object>
e
ARG_CODEC
field_46636
ARGUMENT_CODEC
f_302806_
public static final com.mojang.serialization.MapCodec<TranslatableContents>
b
CODEC
field_46633
CODEC
f_302832_
public static final ComponentContents$Type<TranslatableContents>
c
TYPE
field_46634
TYPE
f_303657_
private static final FormattedText
f
TEXT_PERCENT
field_24368
LITERAL_PERCENT_SIGN
f_237495_
private static final FormattedText
g
TEXT_NULL
field_24369
NULL_ARGUMENT
f_237496_
private final String
h
key
field_11876
key
f_237497_
private final String
i
fallback
field_41875
fallback
f_263792_
private final Object[]
j
args
field_11875
args
f_237498_
private Language
k
decomposedWith
field_25317
languageCache
f_237499_
private List<FormattedText>
l
decomposedParts
field_11877
translations
f_237500_
private static final Pattern
m
FORMAT_PATTERN
field_11872
ARG_FORMAT
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)
validate(Object object)
m_307068_(Object p_310291_)
public static boolean
a(Object arg0)
isAllowedPrimitiveArgument(Object arg0)
method_54238(Object arg0)
isPrimitive(Object argument)
m_306839_(Object p_313191_)
private static Optional<List<Object>>
a(Object[] arg0)
adjustArgs(Object[] arg0)
method_54244(Object[] arg0)
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)
toArray(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)
of(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()
getType()
m_304650_()
private void
e()
decompose()
method_11025()
updateTranslations()
m_237524_()
private void
a(String arg0, Consumer<xu> 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(xu$b<T> arg0, ym 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(xu$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(ep arg0, bsw 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
b()
getKey()
method_11022()
getKey()
m_237508_()
public String
c()
getFallback()
method_48323()
getFallback()
m_264577_()
public Object[]
d()
getArgs()
method_11023()
getArgs()
m_237523_()