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 TypeMethodDescriptionprotected boolean
Clones the BaseComponent and returns the clone.boolean
The keybind identifier to use.int
hashCode()
void
setKeybind
(String keybind) The keybind identifier to use.protected void
toLegacyText
(StringBuilder builder) protected void
toPlainText
(StringBuilder builder) toString()
Methods inherited from class net.md_5.bungee.api.chat.BaseComponent
addExtra, addExtra, copyFormatting, copyFormatting, copyFormatting, duplicateWithoutFormatting, getClickEvent, getColor, getColorRaw, getExtra, getFont, getFontRaw, getHoverEvent, getInsertion, hasFormatting, isBold, isBoldRaw, isItalic, isItalicRaw, isObfuscated, isObfuscatedRaw, isReset, isStrikethrough, isStrikethroughRaw, isUnderlined, isUnderlinedRaw, retain, setBold, setClickEvent, setColor, setExtra, setFont, setHoverEvent, setInsertion, setItalic, setObfuscated, setReset, setStrikethrough, 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:
-
KeybindComponent
public KeybindComponent()
-
-
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
-
getKeybind
The keybind identifier to use.
Will be replaced with the actual key the client is using. -
setKeybind
The keybind identifier to use.
Will be replaced with the actual key the client is using. -
toString
- Overrides:
toString
in classBaseComponent
-
equals
- Overrides:
equals
in classBaseComponent
-
canEqual
- Overrides:
canEqual
in classBaseComponent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseComponent
-