public class NbtComponent extends TextComponent
TextComponent.ComponentConsumer| Constructor and Description |
|---|
NbtComponent(java.lang.String component,
boolean resolve,
boolean plain,
NbtDataSource dataSource) |
NbtComponent(java.lang.String component,
boolean resolve,
boolean plain,
TextComponent separator,
NbtDataSource dataSource) |
NbtComponent(java.lang.String component,
boolean resolve,
NbtDataSource dataSource) |
NbtComponent(java.lang.String component,
boolean resolve,
TextComponent separator,
NbtDataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asSingleString() |
TextComponent |
shallowCopy()
Create a shallow copy of this component.
This will only copy the component itself (including style) and not its siblings. |
java.lang.String |
toString() |
append, append, append, append, asLegacyFormatString, asSingleString, asUnformattedString, asUnformattedString, atlasSprite, atlasSprite, atlasSprite, atlasSprite, blockNbt, blockNbt, copy, 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, translation, visitpublic NbtComponent(java.lang.String component,
boolean resolve,
NbtDataSource dataSource)
public NbtComponent(java.lang.String component,
boolean resolve,
boolean plain,
NbtDataSource dataSource)
public NbtComponent(java.lang.String component,
boolean resolve,
@Nullable
TextComponent separator,
NbtDataSource dataSource)
public NbtComponent(java.lang.String component,
boolean resolve,
boolean plain,
@Nullable
TextComponent separator,
NbtDataSource dataSource)
public java.lang.String asSingleString()
asSingleString in class TextComponentpublic TextComponent shallowCopy()
TextComponentshallowCopy in class TextComponentpublic java.lang.String toString()
toString in class TextComponent