Package net.md_5.bungee.api.chat
Class KeybindComponent
java.lang.Object
net.md_5.bungee.api.chat.BaseComponent
net.md_5.bungee.api.chat.KeybindComponent
-
Constructor Summary
ConstructorDescriptionKeybindComponent
(String keybind) Creates a keybind component with the passed internal keybind value.KeybindComponent
(KeybindComponent original) Creates a keybind component from the original to clone it. -
Method Summary
Modifier and TypeMethodDescriptionClones the BaseComponent and returns the clone.protected void
toLegacyText
(StringBuilder builder) protected void
toPlainText
(StringBuilder builder) Methods inherited from class net.md_5.bungee.api.chat.BaseComponent
addExtra, addExtra, applyStyle, copyFormatting, copyFormatting, copyFormatting, duplicateWithoutFormatting, getColor, getColorRaw, getFont, getFontRaw, hasFormatting, hasStyle, isBold, isBoldRaw, isItalic, isItalicRaw, isObfuscated, isObfuscatedRaw, isStrikethrough, isStrikethroughRaw, isUnderlined, isUnderlinedRaw, retain, setBold, setColor, setExtra, setFont, setItalic, setObfuscated, setStrikethrough, setStyle, setUnderlined, toLegacyText, toLegacyText, toPlainText, toPlainText
-
Constructor Details
-
KeybindComponent
Creates a keybind component from the original to clone it.- Parameters:
original
- the original for the new keybind component.
-
KeybindComponent
Creates a keybind component with the passed internal keybind value.- Parameters:
keybind
- the keybind value- See Also:
-
-
Method Details
-
duplicate
Description copied from class:BaseComponent
Clones the BaseComponent and returns the clone.- Specified by:
duplicate
in classBaseComponent
- Returns:
- The duplicate of this BaseComponent
-
toPlainText
-
toLegacyText
-