public class StringTextComponent extends TextComponent
ITextComponent.Serializer
siblings
コンストラクタと説明 |
---|
StringTextComponent(java.lang.String msg) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.String |
getText()
Gets the text value of this component.
|
java.lang.String |
getUnformattedComponentText()
Gets the raw content of this component (but not its sibling components), without any formatting codes.
|
StringTextComponent |
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 getText()
text
property, and only should be used
when dealing specifically with instances of TextComponentString
- for other purposes, use getUnformattedComponentText()
.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 StringTextComponent shallowCopy()
public boolean equals(java.lang.Object p_equals_1_)
equals
クラス内 TextComponent
public java.lang.String toString()
toString
クラス内 TextComponent