Package net.minecraft.network.chat
Class TranslatableComponent
java.lang.Object
net.minecraft.network.chat.BaseComponent
net.minecraft.network.chat.TranslatableComponent
- All Implemented Interfaces:
com.mojang.brigadier.Message
,Component
,ContextAwareComponent
,FormattedText
,MutableComponent
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.chat.Component
Component.Serializer
Nested classes/interfaces inherited from interface net.minecraft.network.chat.FormattedText
FormattedText.ContentConsumer<T>, FormattedText.StyledContentConsumer<T>
-
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 class net.minecraft.network.chat.BaseComponent
siblings
Fields inherited from interface net.minecraft.network.chat.FormattedText
EMPTY, STOP_ITERATION
-
Constructor Summary
ConstructorDescriptionTranslatableComponent
(String p_131305_) TranslatableComponent
(String p_131307_, Object... p_131308_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
decomposeTemplate
(String p_200006_, Consumer<FormattedText> p_200007_) boolean
Object[]
getArgs()
private FormattedText
getArgument
(int p_131314_) getKey()
int
hashCode()
resolve
(CommandSourceStack p_131310_, Entity p_131311_, int p_131312_) toString()
<T> Optional<T>
visitSelf
(FormattedText.ContentConsumer<T> p_131316_) <T> Optional<T>
visitSelf
(FormattedText.StyledContentConsumer<T> p_131318_, Style p_131319_) Methods inherited from class net.minecraft.network.chat.BaseComponent
append, copy, getContents, getSiblings, getStyle, getVisualOrderText, setStyle
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
NO_ARGS
-
TEXT_PERCENT
-
TEXT_NULL
-
key
-
args
-
decomposedWith
-
decomposedParts
-
FORMAT_PATTERN
-
-
Constructor Details
-
TranslatableComponent
-
TranslatableComponent
-
-
Method Details
-
decompose
private void decompose() -
decomposeTemplate
-
getArgument
-
plainCopy
- Specified by:
plainCopy
in interfaceComponent
- Specified by:
plainCopy
in classBaseComponent
-
visitSelf
-
visitSelf
-
resolve
public MutableComponent resolve(@Nullable CommandSourceStack p_131310_, @Nullable Entity p_131311_, int p_131312_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
resolve
in interfaceContextAwareComponent
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
equals
- Overrides:
equals
in classBaseComponent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseComponent
-
toString
- Overrides:
toString
in classBaseComponent
-
getKey
-
getArgs
-