Class ServerLinksDialog

java.lang.Object
net.md_5.bungee.api.dialog.ServerLinksDialog
All Implemented Interfaces:
Dialog

public final class ServerLinksDialog extends Object implements Dialog
Represents a dialog which shows the links configured/sent from the server.
  • Constructor Details

    • ServerLinksDialog

      public ServerLinksDialog(DialogBase base)
    • ServerLinksDialog

      public ServerLinksDialog(DialogBase base, ClickEvent onClick, int columns, int buttonWidth)
      Creates a new ServerLinksDialog instance.
      Parameters:
      base -
      onClick - The optional ClickEvent for this dialog.
      columns - The number of columns for the dialog buttons (default: 2).
      buttonWidth - The width of the dialog buttons (default: 150).
  • Method Details

    • getBase

      public DialogBase getBase()
      Description copied from interface: Dialog
      Gets the dialog base which contains the dialog title and other options common to all types of dialogs.
      Specified by:
      getBase in interface Dialog
      Returns:
      mutable reference to the dialog base
    • onClick

      public ClickEvent onClick()
      The optional ClickEvent for this dialog.
    • columns

      public int columns()
      The number of columns for the dialog buttons (default: 2).
    • buttonWidth

      public int buttonWidth()
      The width of the dialog buttons (default: 150).
    • setBase

      public void setBase(DialogBase base)
      Description copied from interface: Dialog
      Sets the dialog base.
      For internal use only as this is mandatory and should be specified in the constructor.
      Specified by:
      setBase in interface Dialog
      Parameters:
      base - the new dialog base
    • onClick

      public ServerLinksDialog onClick(ClickEvent onClick)
      The optional ClickEvent for this dialog.
      Returns:
      this.
    • columns

      public ServerLinksDialog columns(int columns)
      The number of columns for the dialog buttons (default: 2).
      Returns:
      this.
    • buttonWidth

      public ServerLinksDialog buttonWidth(int buttonWidth)
      The width of the dialog buttons (default: 150).
      Returns:
      this.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object