public class ScoreTextComponent extends TextComponent implements ITargetedTextComponent
ITextComponent.Serializersiblings| コンストラクタと説明 |
|---|
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, streamappendText, applyTextStyle, applyTextStyle, applyTextStyles, copyWithoutSiblings, deepCopy, func_212637_f, getFormattedText, getString, getStringTruncated, iteratorpublic 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 インタフェース内 ITextComponentpublic ScoreTextComponent shallowCopy()
shallowCopy インタフェース内 ITextComponentpublic ITextComponent createNames(@Nullable CommandSource p_197668_1_, @Nullable Entity p_197668_2_, int p_197668_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
createNames インタフェース内 ITargetedTextComponentcom.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic boolean equals(java.lang.Object p_equals_1_)
equals クラス内 TextComponentpublic java.lang.String toString()
toString クラス内 TextComponent