public class TextComponentKeybind extends TextComponentBase
ITextComponent.Serializer| Modifier and Type | Field and Description |
|---|---|
static java.util.function.Function<java.lang.String,java.util.function.Supplier<java.lang.String>> |
displaySupplierFunction |
siblings| Constructor and Description |
|---|
TextComponentKeybind(java.lang.String keybind) |
| Modifier and Type | Method and Description |
|---|---|
TextComponentKeybind |
createCopy()
Creates a copy of this component.
|
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.String |
getKeybind() |
java.lang.String |
getUnformattedComponentText()
Gets the raw content of this component (but not its sibling components), without any formatting codes.
|
java.lang.String |
toString() |
appendSibling, appendText, createDeepCopyIterator, getFormattedText, getSiblings, getStyle, getUnformattedText, hashCode, iterator, setStylepublic static java.util.function.Function<java.lang.String,java.util.function.Supplier<java.lang.String>> displaySupplierFunction
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 TextComponentKeybind createCopy()
public boolean equals(java.lang.Object p_equals_1_)
equals in class TextComponentBasepublic java.lang.String toString()
toString in class TextComponentBasepublic java.lang.String getKeybind()