public class SelectorTextComponent extends TextComponent implements ITargetedTextComponent
ITextComponent.Serializer
siblings
コンストラクタと説明 |
---|
SelectorTextComponent(java.lang.String selectorIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
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 |
getSelector()
Gets the selector of this component, in plain text.
|
java.lang.String |
getUnformattedComponentText()
Gets the raw content of this component (but not its sibling components), without any formatting codes.
|
SelectorTextComponent |
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 java.lang.String getSelector()
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 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 SelectorTextComponent shallowCopy()
shallowCopy
インタフェース内 ITextComponent
public boolean equals(java.lang.Object p_equals_1_)
equals
クラス内 TextComponent
public java.lang.String toString()
toString
クラス内 TextComponent