Class DialogAction

java.lang.Object
net.md_5.bungee.api.dialog.action.DialogAction
Direct Known Subclasses:
DialogClickAction, DialogSubmitAction

public class DialogAction extends Object
Represents a dialog action which will usually appear as a button.
  • Constructor Details

    • DialogAction

      public DialogAction(BaseComponent label)
    • DialogAction

      public DialogAction(BaseComponent label, BaseComponent tooltip, int width)
      Creates a new DialogAction instance.
      Parameters:
      label - The text label of the button, mandatory.
      tooltip - The hover tooltip of the button.
      width - The width of the button (default: 150).
  • Method Details

    • getLabel

      public BaseComponent getLabel()
      The text label of the button, mandatory.
    • getTooltip

      public BaseComponent getTooltip()
      The hover tooltip of the button.
    • getWidth

      public int getWidth()
      The width of the button (default: 150).
    • setLabel

      public void setLabel(BaseComponent label)
      The text label of the button, mandatory.
    • setTooltip

      public void setTooltip(BaseComponent tooltip)
      The hover tooltip of the button.
    • setWidth

      public void setWidth(int width)
      The width of the button (default: 150).
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object