public class StringComponent extends TextComponent
| Constructor and Description |
|---|
StringComponent() |
StringComponent(java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asSingleString() |
TextComponent |
copy() |
java.lang.String |
getText() |
StringComponent |
setText(java.lang.String text)
Set the text of this component.
|
TextComponent |
shallowCopy()
Create a shallow copy of this component.
This will only copy the component itself and not its siblings. |
java.lang.String |
toString() |
append, append, append, append, asLegacyFormatString, asUnformattedString, atlasSprite, atlasSprite, blockNbt, blockNbt, copyMetaTo, empty, entityNbt, entityNbt, forEach, formatted, getSiblings, getStyle, keybind, mergeSiblingParentStyle, of, of, of, of, score, score, selector, selector, setParentStyle, setSiblingParentStyle, setStyle, storageNbt, storageNbt, styled, translation, translationpublic StringComponent()
public StringComponent(java.lang.String text)
public java.lang.String getText()
public StringComponent setText(java.lang.String text)
text - The textpublic java.lang.String asSingleString()
asSingleString in class TextComponentpublic TextComponent copy()
copy in interface net.lenni0451.mcstructs.core.Copyable<TextComponent>copy in class TextComponentpublic TextComponent shallowCopy()
TextComponentshallowCopy in class TextComponentpublic java.lang.String toString()
toString in class TextComponent