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 Object[]
private List<FormattedText>
private Language
private static Pattern
private String
private static Object[]
private static FormattedText
private static 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_131322_)
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
public <T> Optional<T> visitSelf(FormattedText.StyledContentConsumer<T> p_131318_, Style p_131319_) -
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
-