net.minecraft.network.chat.contents

public class TranslatableContents

implements ComponentContents

zg
net.minecraft.network.chat.contents.TranslatableContents
net.minecraft.class_2588
net.minecraft.text.TranslatableTextContent
net.minecraft.network.chat.contents.TranslatableContents

Field summary

Modifier and TypeField
public static final Object[]
a
NO_ARGS
field_24367
EMPTY_ARGUMENTS
private static final com.mojang.serialization.Codec<Object>
d
PRIMITIVE_ARG_CODEC
field_46635
OBJECT_ARGUMENT_CODEC
private static final com.mojang.serialization.Codec<Object>
e
ARG_CODEC
field_46636
ARGUMENT_CODEC
public static final com.mojang.serialization.MapCodec<TranslatableContents>
b
CODEC
field_46633
CODEC
public static final ComponentContents$Type<TranslatableContents>
c
TYPE
field_46634
TYPE
private static final FormattedText
f
TEXT_PERCENT
field_24368
LITERAL_PERCENT_SIGN
private static final FormattedText
g
TEXT_NULL
field_24369
NULL_ARGUMENT
private final String
h
key
field_11876
key
private final String
i
fallback
field_41875
fallback
private final Object[]
j
args
field_11875
args
private Language
k
decomposedWith
field_25317
languageCache
private List<FormattedText>
l
decomposedParts
field_11877
translations
private static final Pattern
m
FORMAT_PATTERN
field_11872
ARG_FORMAT

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)
public static boolean
a(Object arg0)
isAllowedPrimitiveArgument(Object arg0)
method_54238(Object arg0)
isPrimitive(Object argument)
private static Optional<List<Object>>
a(Object[] arg0)
adjustArgs(Object[] arg0)
method_54244(Object[] arg0)
toOptionalList(Object[] args)
private static []
a(Optional<List<Object>> arg0)
adjustArgs(Optional<List<Object>> arg0)
method_54241(Optional<List<Object>> arg0)
toArray(Optional<List<Object>> args)
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)
public ComponentContents$Type<?>
a()
type()
method_54163()
getType()
private void
e()
decompose()
method_11025()
updateTranslations()
private void
a(String arg0, Consumer<ya> arg1)
decomposeTemplate(String arg0, Consumer<FormattedText> arg1)
method_11024(String arg0, Consumer<class_5348> arg1)
forEachPart(String translation, Consumer<StringVisitable> partsConsumer)
private FormattedText
a(int arg0)
getArgument(int arg0)
method_29434(int arg0)
getArg(int index)
public <T> Optional<T>
a(ya$b<T> arg0, ys 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)
public <T> Optional<T>
a(ya$a<T> arg0)
visit(FormattedText$ContentConsumer<T> arg0)
method_27659(class_5348$class_5245<T> arg0)
visit(StringVisitable$Visitor<T> arg0)
public MutableComponent
a(ew arg0, bvk 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)
public String
b()
getKey()
method_11022()
getKey()
public String
c()
getFallback()
method_48323()
getFallback()
public Object[]
d()
getArgs()
method_11023()
getArgs()