程序包 net.md_5.bungee.api.chat

# 类 KeybindComponent

java.lang.Object
net.md_5.bungee.api.chat.BaseComponent
net.md_5.bungee.api.chat.KeybindComponent

public final class KeybindComponent extends BaseComponent

- ## 构造器概要

  构造器
  构造器
  说明
  `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.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `protected boolean`
  `canEqual(Object other)`
  `KeybindComponent`
  `duplicate()`
  克隆本组件并返回克隆副本.
  `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()`

  ### 从类继承的方法 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`

  ### 从类继承的方法 java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## 构造器详细资料

  - ### KeybindComponent

    public KeybindComponent(KeybindComponent original)
    Creates a keybind component from the original to clone it.
    参数:
      `original` - the original for the new keybind component.

  - ### KeybindComponent

    public KeybindComponent(String keybind)
    Creates a keybind component with the passed internal keybind value.
    参数:
      `keybind` - the keybind value
    另请参阅:
      - `Keybinds`

  - ### KeybindComponent

    public KeybindComponent()

- ## 方法详细资料

  - ### duplicate

    public KeybindComponent duplicate()
    从类复制的说明: `BaseComponent`
    克隆本组件并返回克隆副本.

    原文:Clones the BaseComponent and returns the clone.

    指定者:
      `duplicate` 在类中 `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()
    覆盖:
      `toString` 在类中 `BaseComponent`

  - ### equals

    public boolean equals(Object o)
    覆盖:
      `equals` 在类中 `BaseComponent`

  - ### canEqual

    protected boolean canEqual(Object other)
    覆盖:
      `canEqual` 在类中 `BaseComponent`

  - ### hashCode

    public int hashCode()
    覆盖:
      `hashCode` 在类中 `BaseComponent`