Interface Confirm

All Known Implementing Classes:
ChatConfirm, InventoryConfirm

public interface Confirm
  • Method Details

    • show

      void show()
      Show the confirm dialog.
      显示确认对话框。
    • getConfirmText

      String getConfirmText()
      Get the confirm text.
      获取确认文本。
    • getCancelText

      String getCancelText()
      Get the cancel text.
      获取取消文本。
    • gui

      static Confirm gui(org.bukkit.entity.Player player, String title, String description, Runnable onConfirm, Runnable onCancel)
      Create a confirm dialog with GUI.
      创建一个带有 GUI 的确认对话框。
      Parameters:
      player - Player
      玩家
      title - Title
      标题
      description - Description
      描述
      onConfirm - On confirm
      确认时
      onCancel - On cancel
      取消时
      Returns:
      Confirm
      确认对话框
    • gui

      static Confirm gui(org.bukkit.entity.Player player, String title, String description, String confirmText, String cancelText, Runnable onConfirm, Runnable onCancel)
      Create a confirm dialog with GUI. You can set the confirm and cancel text.
      创建一个带有 GUI 的确认对话框。 你可以设置确认和取消文本。
      Parameters:
      player - Player
      玩家
      title - Title
      标题
      description - Description
      描述
      confirmText - Confirm text
      确认文本
      cancelText - Cancel text
      取消文本
      onConfirm - On confirm
      确认时
      onCancel - On cancel
      取消时
      Returns:
      Confirm
      确认对话框
    • chat

      static Confirm chat(org.bukkit.entity.Player player, String title, String description, Runnable onConfirm, Runnable onCancel)
      Create a confirm dialog with chat.
      创建一个带有聊天的确认对话框。
      Parameters:
      player - Player
      玩家
      title - Title
      标题
      description - Description
      描述
      onConfirm - On confirm
      确认时
      onCancel - On cancel
      取消时
      Returns:
      Confirm
      确认对话框
    • chat

      static Confirm chat(org.bukkit.entity.Player player, String title, String description, String confirmText, String cancelText, Runnable onConfirm, Runnable onCancel)
      Create a confirm dialog with chat. You can set the confirm and cancel text.
      创建一个带有聊天的确认对话框。 你可以设置确认和取消文本。
      Parameters:
      player - Player
      玩家
      title - Title
      标题
      description - Description
      描述
      confirmText - Confirm text
      确认文本
      cancelText - Cancel text
      取消文本
      onConfirm - On confirm
      确认时
      onCancel - On cancel
      取消时
      Returns:
      Confirm
      确认对话框