public abstract class TextComponent extends java.lang.Object implements ITextComponent
ITextComponent.Serializer
修飾子とタイプ | フィールドと説明 |
---|---|
protected java.util.List<ITextComponent> |
siblings
The later siblings of this component.
|
コンストラクタと説明 |
---|
TextComponent() |
修飾子とタイプ | メソッドと説明 |
---|---|
ITextComponent |
appendSibling(ITextComponent component)
Adds a new component to the end of the sibling list, setting that component's style's parent style to this
component's style.
|
boolean |
equals(java.lang.Object p_equals_1_) |
java.util.List<ITextComponent> |
getSiblings()
Gets the sibling components of this one.
|
Style |
getStyle()
Gets the style of this component.
|
int |
hashCode() |
ITextComponent |
setStyle(Style style)
Sets the style of this component and updates the parent style of all of the sibling components.
|
java.util.stream.Stream<ITextComponent> |
stream() |
java.lang.String |
toString() |
appendText, applyTextStyle, applyTextStyle, applyTextStyles, copyWithoutSiblings, deepCopy, func_212637_f, getFormattedText, getString, getStringTruncated, getUnformattedComponentText, iterator, shallowCopy
protected final java.util.List<ITextComponent> siblings
public ITextComponent appendSibling(ITextComponent component)
appendSibling
インタフェース内 ITextComponent
public java.util.List<ITextComponent> getSiblings()
getSiblings
インタフェース内 ITextComponent
public ITextComponent setStyle(Style style)
setStyle
インタフェース内 ITextComponent
public Style getStyle()
setStyle(Style)
again after modifying it).
If this component's style is currently null
, it will be initialized to the default style, and the
parent style of all sibling components will be set to that style. (IE, changes to this style will also be
reflected in sibling components.)
This method never returns null
.getStyle
インタフェース内 ITextComponent
public java.util.stream.Stream<ITextComponent> stream()
stream
インタフェース内 ITextComponent
public boolean equals(java.lang.Object p_equals_1_)
equals
クラス内 java.lang.Object
public int hashCode()
hashCode
クラス内 java.lang.Object
public java.lang.String toString()
toString
クラス内 java.lang.Object