public class ScoreTextComponent extends TextComponent implements ITargetedTextComponent
ITextComponent.Serializer
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
private java.lang.String |
objective |
private EntitySelector |
selector |
private java.lang.String |
value |
siblings
Constructor and Description |
---|
ScoreTextComponent(java.lang.String nameIn,
java.lang.String objectiveIn) |
Modifier and Type | Method and Description |
---|---|
ITextComponent |
createNames(CommandSource p_197668_1_,
Entity p_197668_2_,
int p_197668_3_) |
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.String |
getName() |
java.lang.String |
getObjective() |
java.lang.String |
getUnformattedComponentText() |
private void |
resolve(CommandSource p_197665_1_) |
void |
setValue(java.lang.String valueIn) |
ScoreTextComponent |
shallowCopy() |
java.lang.String |
toString() |
appendSibling, getSiblings, getStyle, hashCode, setStyle, stream
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
appendText, applyTextStyle, applyTextStyle, applyTextStyles, copyWithoutSiblings, deepCopy, func_212637_f, getFormattedText, getString, getStringTruncated, iterator
private final java.lang.String name
@Nullable private final EntitySelector selector
private final java.lang.String objective
private java.lang.String value
public ScoreTextComponent(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)
public java.lang.String getUnformattedComponentText()
getUnformattedComponentText
in interface ITextComponent
private void resolve(CommandSource p_197665_1_)
public ScoreTextComponent shallowCopy()
shallowCopy
in interface ITextComponent
public ITextComponent createNames(@Nullable CommandSource p_197668_1_, @Nullable Entity p_197668_2_, int p_197668_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
createNames
in interface ITargetedTextComponent
com.mojang.brigadier.exceptions.CommandSyntaxException
public boolean equals(java.lang.Object p_equals_1_)
equals
in class TextComponent
public java.lang.String toString()
toString
in class TextComponent