Package net.minecraft.util.text
Class TranslationTextComponent
java.lang.Object
net.minecraft.util.text.TextComponent
net.minecraft.util.text.TranslationTextComponent
- All Implemented Interfaces:
com.mojang.brigadier.Message
,IFormattableTextComponent
,ITargetedTextComponent
,ITextComponent
,ITextProperties
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.text.ITextComponent
ITextComponent.Serializer
Nested classes/interfaces inherited from interface net.minecraft.util.text.ITextProperties
ITextProperties.IStyledTextAcceptor<T>, ITextProperties.ITextAcceptor<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Object[]
private final List<ITextProperties>
private LanguageMap
private static final Pattern
private final String
private static final Object[]
private static final ITextProperties
private static final ITextProperties
Fields inherited from class net.minecraft.util.text.TextComponent
siblings
Fields inherited from interface net.minecraft.util.text.ITextProperties
EMPTY, STOP_ITERATION
-
Constructor Summary
ConstructorDescriptionTranslationTextComponent
(String p_i232574_1_) TranslationTextComponent
(String p_i45160_1_, Object... p_i45160_2_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
decomposeTemplate
(String p_240758_1_) boolean
Object[]
getArgs()
private ITextProperties
getArgument
(int p_240757_1_) getKey()
int
hashCode()
resolve
(CommandSource p_230535_1_, Entity p_230535_2_, int p_230535_3_) toString()
<T> Optional<T>
visitSelf
(ITextProperties.IStyledTextAcceptor<T> p_230534_1_, Style p_230534_2_) <T> Optional<T>
visitSelf
(ITextProperties.ITextAcceptor<T> p_230533_1_) Methods inherited from class net.minecraft.util.text.TextComponent
append, copy, getContents, getSiblings, getStyle, getVisualOrderText, setStyle
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.util.text.IFormattableTextComponent
append, withStyle, withStyle, withStyle, withStyle
Methods inherited from interface net.minecraft.util.text.ITextComponent
getString, getString, visit, visit
-
Field Details
-
NO_ARGS
-
TEXT_PERCENT
-
TEXT_NULL
-
key
-
args
-
decomposedWith
-
decomposedParts
-
FORMAT_PATTERN
-
-
Constructor Details
-
TranslationTextComponent
-
TranslationTextComponent
-
-
Method Details
-
decompose
private void decompose() -
decomposeTemplate
-
getArgument
-
plainCopy
- Specified by:
plainCopy
in interfaceITextComponent
- Specified by:
plainCopy
in classTextComponent
-
visitSelf
public <T> Optional<T> visitSelf(ITextProperties.IStyledTextAcceptor<T> p_230534_1_, Style p_230534_2_) - Specified by:
visitSelf
in interfaceITextComponent
-
visitSelf
- Specified by:
visitSelf
in interfaceITextComponent
-
resolve
public IFormattableTextComponent resolve(@Nullable CommandSource p_230535_1_, @Nullable Entity p_230535_2_, int p_230535_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
resolve
in interfaceITargetedTextComponent
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
equals
- Overrides:
equals
in classTextComponent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTextComponent
-
toString
- Overrides:
toString
in classTextComponent
-
getKey
-
getArgs
-