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, toPlainText
public KeybindComponent(KeybindComponent original)
original
- the original for the new keybind component.public KeybindComponent(String keybind)
keybind
- the keybind valueKeybinds
public KeybindComponent()
public KeybindComponent duplicate()
BaseComponent
duplicate
in class BaseComponent
protected void toPlainText(StringBuilder builder)
protected void toLegacyText(StringBuilder builder)
public String getKeybind()
public void setKeybind(String keybind)
public String toString()
toString
in class BaseComponent
public boolean equals(Object o)
equals
in class BaseComponent
protected boolean canEqual(Object other)
canEqual
in class BaseComponent
public int hashCode()
hashCode
in class BaseComponent
Copyright © 2012–2020 SpigotMC. All rights reserved.