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.SerializerNested classes/interfaces inherited from interface net.minecraft.util.text.ITextProperties
ITextProperties.IStyledTextAcceptor<T>, ITextProperties.ITextAcceptor<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Stringprivate final EntitySelectorFields inherited from class net.minecraft.util.text.TextComponent
siblingsFields inherited from interface net.minecraft.util.text.ITextProperties
EMPTY, STOP_ITERATION -
Constructor Summary
ConstructorsModifierConstructorDescriptionScoreTextComponent(String p_i45997_1_, String p_i45997_2_) privateScoreTextComponent(String p_i232569_1_, EntitySelector p_i232569_2_, String p_i232569_3_) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate StringfindTargetName(CommandSource p_240705_1_) getName()private StringgetScore(String p_240706_1_, CommandSource p_240706_2_) private static EntitySelectorparseSelector(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, setStyleMethods 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:
plainCopyin interfaceITextComponent- Specified by:
plainCopyin 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:
resolvein interfaceITargetedTextComponent- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
equals
- Overrides:
equalsin classTextComponent
-
toString
- Overrides:
toStringin classTextComponent
-