public class TextComponentScore extends TextComponentBase
ITextComponent.Serializer
siblings
Constructor and Description |
---|
TextComponentScore(java.lang.String nameIn,
java.lang.String objectiveIn) |
Modifier and Type | Method and Description |
---|---|
TextComponentScore |
createCopy()
Creates a copy of this component.
|
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.String |
getName()
Gets the name of the entity who owns this score.
|
java.lang.String |
getObjective()
Gets the name of the objective for this score.
|
java.lang.String |
getUnformattedComponentText()
Gets the raw content of this component (but not its sibling components), without any formatting codes.
|
void |
resolve(ICommandSender sender)
Resolves the value of the score on this component.
|
void |
setValue(java.lang.String valueIn)
Sets the value that is displayed for the score.
|
java.lang.String |
toString() |
appendSibling, appendText, createDeepCopyIterator, getFormattedText, getSiblings, getStyle, getUnformattedText, hashCode, iterator, setStyle
public TextComponentScore(java.lang.String nameIn, java.lang.String objectiveIn)
public java.lang.String getName()
public java.lang.String getObjective()
public void setValue(java.lang.String valueIn)
TextComponentString
)public java.lang.String getUnformattedComponentText()
TextComponentString
, but it's the translated text for a TextComponentTranslation
and it's the score value for a TextComponentScore
.public void resolve(ICommandSender sender)
sender
- The sender, used only to identify a server.public TextComponentScore createCopy()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class TextComponentBase
public java.lang.String toString()
toString
in class TextComponentBase