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 Details

    • 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:
    • KeybindComponent

      public KeybindComponent()
  • Method Details

    • duplicate

      public KeybindComponent duplicate()
      Description copied from class: BaseComponent
      Clones the BaseComponent and returns the clone.
      Specified by:
      duplicate in class BaseComponent
      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:
      toString in class BaseComponent
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class BaseComponent
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class BaseComponent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseComponent