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
ConstructorsConstructorDescriptionKeybindComponent(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 booleanClones the BaseComponent and returns the clone.booleanThe keybind identifier to use.inthashCode()voidsetKeybind(String keybind) The keybind identifier to use.protected voidtoLegacyText(StringBuilder builder) protected voidtoPlainText(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:BaseComponentClones the BaseComponent and returns the clone.- Specified by:
duplicatein 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:
toStringin classBaseComponent
-
equals
- Overrides:
equalsin classBaseComponent
-
canEqual
- Overrides:
canEqualin classBaseComponent
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseComponent
-