Class TranslatableContents
java.lang.Object
net.minecraft.network.chat.contents.TranslatableContents
- All Implemented Interfaces:
ComponentContents
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Object[]
private List<FormattedText>
private Language
private static final Pattern
private final String
private static final Object[]
private static final FormattedText
private static final FormattedText
Fields inherited from interface net.minecraft.network.chat.ComponentContents
EMPTY
-
Constructor Summary
ConstructorDescriptionTranslatableContents
(String p_237504_) TranslatableContents
(String p_237506_, Object... p_237507_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
decomposeTemplate
(String p_237516_, Consumer<FormattedText> p_237517_) boolean
Object[]
getArgs()
private FormattedText
getArgument
(int p_237510_) getKey()
int
hashCode()
resolve
(CommandSourceStack p_237512_, Entity p_237513_, int p_237514_) toString()
<T> Optional<T>
visit
(FormattedText.ContentConsumer<T> p_237519_) <T> Optional<T>
visit
(FormattedText.StyledContentConsumer<T> p_237521_, Style p_237522_)
-
Field Details
-
NO_ARGS
-
TEXT_PERCENT
-
TEXT_NULL
-
key
-
args
-
decomposedWith
-
decomposedParts
-
FORMAT_PATTERN
-
-
Constructor Details
-
TranslatableContents
-
TranslatableContents
-
-
Method Details
-
decompose
private void decompose() -
decomposeTemplate
-
getArgument
-
visit
- Specified by:
visit
in interfaceComponentContents
-
visit
- Specified by:
visit
in interfaceComponentContents
-
resolve
public MutableComponent resolve(@Nullable CommandSourceStack p_237512_, @Nullable Entity p_237513_, int p_237514_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
resolve
in interfaceComponentContents
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
equals
-
hashCode
public int hashCode() -
toString
-
getKey
-
getArgs
-