public final class KeybindComponent extends BaseComponent
| Constructor and Description |
|---|
KeybindComponent() |
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 |
|---|---|
protected boolean |
canEqual(Object other) |
KeybindComponent |
duplicate()
Clones the BaseComponent and returns the clone.
|
boolean |
equals(Object o) |
String |
getKeybind()
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) |
String |
toString() |
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, toPlainTextpublic KeybindComponent(KeybindComponent original)
original - the original for the new keybind component.public KeybindComponent(String keybind)
keybind - the keybind valueKeybindspublic KeybindComponent()
public KeybindComponent duplicate()
BaseComponentduplicate in class BaseComponentprotected void toPlainText(StringBuilder builder)
protected void toLegacyText(StringBuilder builder)
public String getKeybind()
public void setKeybind(String keybind)
public String toString()
toString in class BaseComponentpublic boolean equals(Object o)
equals in class BaseComponentprotected boolean canEqual(Object other)
canEqual in class BaseComponentpublic int hashCode()
hashCode in class BaseComponentCopyright © 2012–2020 SpigotMC. All rights reserved.