public final class KeybindComponent extends BaseComponent
Constructor and Description |
---|
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 |
---|---|
KeybindComponent |
duplicate()
Clones the BaseComponent and returns the clone.
|
protected void |
toLegacyText(StringBuilder builder) |
protected void |
toPlainText(StringBuilder builder) |
addExtra, addExtra, copyFormatting, copyFormatting, copyFormatting, duplicateWithoutFormatting, getColor, getColorRaw, getFont, getFontRaw, hasFormatting, isBold, isBoldRaw, isItalic, isItalicRaw, isObfuscated, isObfuscatedRaw, isStrikethrough, isStrikethroughRaw, isUnderlined, isUnderlinedRaw, retain, setExtra, toLegacyText, toLegacyText, toPlainText, toPlainText
public KeybindComponent(KeybindComponent original)
original
- the original for the new keybind component.public KeybindComponent duplicate()
BaseComponent
duplicate
in class BaseComponent
protected void toPlainText(StringBuilder builder)
protected void toLegacyText(StringBuilder builder)
Copyright © 2021. All rights reserved.