Package net.minecraft.util.text
Class ScoreTextComponent
java.lang.Object
net.minecraft.util.text.TextComponent
net.minecraft.util.text.ScoreTextComponent
- 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 String
private final String
private final EntitySelector
Fields inherited from class net.minecraft.util.text.TextComponent
siblings
Fields inherited from interface net.minecraft.util.text.ITextProperties
EMPTY, STOP_ITERATION
-
Constructor Summary
ModifierConstructorDescriptionScoreTextComponent
(String p_i45997_1_, String p_i45997_2_) private
ScoreTextComponent
(String p_i232569_1_, EntitySelector p_i232569_2_, String p_i232569_3_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
private String
findTargetName
(CommandSource p_240705_1_) getName()
private String
getScore
(String p_240706_1_, CommandSource p_240706_2_) private static EntitySelector
parseSelector
(String p_240707_0_) resolve
(CommandSource p_230535_1_, Entity p_230535_2_, int p_230535_3_) toString()
Methods inherited from class net.minecraft.util.text.TextComponent
append, copy, getContents, getSiblings, getStyle, getVisualOrderText, hashCode, setStyle
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
name
-
selector
-
objective
-
-
Constructor Details
-
ScoreTextComponent
-
ScoreTextComponent
private ScoreTextComponent(String p_i232569_1_, @Nullable EntitySelector p_i232569_2_, String p_i232569_3_)
-
-
Method Details
-
parseSelector
-
getName
-
getObjective
-
findTargetName
private String findTargetName(CommandSource p_240705_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getScore
-
plainCopy
- Specified by:
plainCopy
in interfaceITextComponent
- Specified by:
plainCopy
in classTextComponent
-
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
-
toString
- Overrides:
toString
in classTextComponent
-