public class ObjectComponent extends TextComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectComponent.AtlasSprite |
static interface |
ObjectComponent.ObjectInfo |
static class |
ObjectComponent.PlayerSprite |
TextComponent.ComponentConsumer| Constructor and Description |
|---|
ObjectComponent(ObjectComponent.ObjectInfo objectInfo) |
| 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 ObjectComponent(ObjectComponent.ObjectInfo objectInfo)
public java.lang.String asSingleString()
asSingleString in class TextComponentpublic TextComponent shallowCopy()
TextComponentshallowCopy in class TextComponentpublic java.lang.String toString()
toString in class TextComponent