public final class KeybindComponent extends BaseComponent
| Constructor and Description |
|---|
KeybindComponent() |
KeybindComponent(KeybindComponent original)
Creates a keybind component from the original to clone it.
|
KeybindComponent(String keybind)
Creates a keybind component with the passed internal keybind value.
|
| Modifier and Type | Method and Description |
|---|---|
BaseComponent |
duplicate()
Clones the BaseComponent and returns the clone.
|
String |
getKeybind()
The keybind identifier to use.
|
void |
setKeybind(String keybind)
The keybind identifier to use.
|
protected void |
toLegacyText(StringBuilder builder) |
protected void |
toPlainText(StringBuilder builder) |
String |
toString() |
addExtra, addExtra, copyFormatting, copyFormatting, copyFormatting, duplicateWithoutFormatting, getClickEvent, getColor, getColorRaw, getExtra, getHoverEvent, getInsertion, hasFormatting, isBold, isBoldRaw, isItalic, isItalicRaw, isObfuscated, isObfuscatedRaw, isStrikethrough, isStrikethroughRaw, isUnderlined, isUnderlinedRaw, retain, setBold, setClickEvent, setColor, setExtra, setHoverEvent, setInsertion, setItalic, setObfuscated, setStrikethrough, setUnderlined, toLegacyText, toLegacyText, toPlainText, toPlainTextpublic KeybindComponent(KeybindComponent original)
original - the original for the new keybind component.public KeybindComponent(String keybind)
keybind - the keybind valueKeybindspublic KeybindComponent()
public BaseComponent duplicate()
BaseComponentduplicate in class BaseComponentprotected void toPlainText(StringBuilder builder)
protected void toLegacyText(StringBuilder builder)
public String getKeybind()
public void setKeybind(String keybind)
public String toString()
toString in class BaseComponentCopyright © 2015–2019 WaterfallMC. All rights reserved.