java.lang.Object
com.fancyinnovations.fancydialogs.api.Dialog

public abstract class Dialog extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • open

      public abstract void open(org.bukkit.entity.Player player)
      Opens the dialog for the specified player.
      Parameters:
      player - the player to open the dialog for
    • close

      public abstract void close(org.bukkit.entity.Player player)
      Closes the dialog for the specified player.
      Parameters:
      player - the player to close the dialog for
    • getId

      public String getId()
    • getData

      public DialogData getData()
    • getViewers

      public Set<UUID> getViewers()
      Returns:
      a set of UUIDs of players who have this dialog opened
    • isOpenedFor

      public abstract boolean isOpenedFor(UUID uuid)
      Checks if the dialog is opened for a specific player by UUID.
      Parameters:
      uuid - of the player to check
      Returns:
      true if the dialog is opened for the player, false otherwise
    • isOpenedFor

      public boolean isOpenedFor(org.bukkit.entity.Player player)
      Checks if the dialog is opened for a specific player.
      Parameters:
      player - the player to check
      Returns:
      true if the dialog is opened for the player, false otherwise
    • addViewer

      @Internal public void addViewer(org.bukkit.entity.Player player)
    • removeViewer

      @Internal public void removeViewer(org.bukkit.entity.Player player)