Package net.minecraft.network.chat
Class ScoreComponent
java.lang.Object
net.minecraft.network.chat.BaseComponent
net.minecraft.network.chat.ScoreComponent
- 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.SerializerNested classes/interfaces inherited from interface net.minecraft.network.chat.FormattedText
FormattedText.ContentConsumer<T>, FormattedText.StyledContentConsumer<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Stringprivate static final Stringprivate final EntitySelectorFields inherited from class net.minecraft.network.chat.BaseComponent
siblingsFields inherited from interface net.minecraft.network.chat.FormattedText
EMPTY, STOP_ITERATION -
Constructor Summary
ConstructorsModifierConstructorDescriptionScoreComponent(String p_131054_, String p_131055_) privateScoreComponent(String p_131050_, EntitySelector p_131051_, String p_131052_) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate StringfindTargetName(CommandSourceStack p_131057_) getName()private StringgetScore(String p_131063_, CommandSourceStack p_131064_) private static EntitySelectorparseSelector(String p_131067_) resolve(CommandSourceStack p_131059_, Entity p_131060_, int p_131061_) toString()Methods inherited from class net.minecraft.network.chat.BaseComponent
append, copy, getContents, getSiblings, getStyle, getVisualOrderText, hashCode, setStyleMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
SCORER_PLACEHOLDER
- See Also:
-
name
-
selector
-
objective
-
-
Constructor Details
-
ScoreComponent
-
ScoreComponent
-
-
Method Details
-
parseSelector
-
getName
-
getSelector
-
getObjective
-
findTargetName
private String findTargetName(CommandSourceStack p_131057_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getScore
-
plainCopy
- Specified by:
plainCopyin interfaceComponent- Specified by:
plainCopyin classBaseComponent
-
resolve
public MutableComponent resolve(@Nullable CommandSourceStack p_131059_, @Nullable Entity p_131060_, int p_131061_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
resolvein interfaceContextAwareComponent- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
equals
- Overrides:
equalsin classBaseComponent
-
toString
- Overrides:
toStringin classBaseComponent
-