public class ScoreTextComponent extends TextComponent implements ITargetedTextComponent
ITextComponent.Serializer
siblings
コンストラクタと説明 |
---|
ScoreTextComponent(java.lang.String nameIn,
java.lang.String objectiveIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
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()
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 |
setValue(java.lang.String valueIn)
Sets the value that is displayed for the score.
|
ScoreTextComponent |
shallowCopy()
Creates a copy of this component.
|
java.lang.String |
toString() |
appendSibling, getSiblings, getStyle, hashCode, setStyle, stream
appendText, applyTextStyle, applyTextStyle, applyTextStyles, copyWithoutSiblings, deepCopy, func_212637_f, getFormattedText, getString, getStringTruncated, iterator
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)
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
.getUnformattedComponentText
インタフェース内 ITextComponent
public ScoreTextComponent shallowCopy()
shallowCopy
インタフェース内 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
インタフェース内 ITargetedTextComponent
com.mojang.brigadier.exceptions.CommandSyntaxException
public boolean equals(java.lang.Object p_equals_1_)
equals
クラス内 TextComponent
public java.lang.String toString()
toString
クラス内 TextComponent