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
-
public final class KeybindComponent extends BaseComponent
-
-
Constructor Summary
Constructors Constructor Description KeybindComponent()KeybindComponent(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)KeybindComponentduplicate()Clones the BaseComponent and returns the clone.booleanequals(Object o)StringgetKeybind()The keybind identifier to use.inthashCode()voidsetKeybind(String keybind)The keybind identifier to use.protected voidtoLegacyText(StringBuilder builder)protected voidtoPlainText(StringBuilder builder)StringtoString()-
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, isStrikethrough, isStrikethroughRaw, isUnderlined, isUnderlinedRaw, retain, setBold, setClickEvent, setColor, setExtra, setFont, setHoverEvent, setInsertion, setItalic, setObfuscated, setStrikethrough, setUnderlined, toLegacyText, toLegacyText, toPlainText, toPlainText
-
-
-
-
Constructor Detail
-
KeybindComponent
public KeybindComponent(KeybindComponent original)
Creates a keybind component from the original to clone it.- Parameters:
original- the original for the new keybind component.
-
KeybindComponent
public KeybindComponent(String keybind)
Creates a keybind component with the passed internal keybind value.- Parameters:
keybind- the keybind value- See Also:
Keybinds
-
KeybindComponent
public KeybindComponent()
-
-
Method Detail
-
duplicate
public KeybindComponent duplicate()
Description copied from class:BaseComponentClones the BaseComponent and returns the clone.- Specified by:
duplicatein classBaseComponent- Returns:
- The duplicate of this BaseComponent
-
toPlainText
protected void toPlainText(StringBuilder builder)
-
toLegacyText
protected void toLegacyText(StringBuilder builder)
-
getKeybind
public String getKeybind()
The keybind identifier to use.
Will be replaced with the actual key the client is using.
-
setKeybind
public void setKeybind(String keybind)
The keybind identifier to use.
Will be replaced with the actual key the client is using.
-
toString
public String toString()
- Overrides:
toStringin classBaseComponent
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classBaseComponent
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classBaseComponent
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBaseComponent
-
-