Package com.ultikits.ultitools.widgets
Interface Confirm
- All Known Implementing Classes:
ChatConfirm,InventoryConfirm
public interface Confirm
-
Method Summary
Modifier and TypeMethodDescriptionstatic Confirmchat(org.bukkit.entity.Player player, String title, String description, Runnable onConfirm, Runnable onCancel) Create a confirm dialog with chat.static Confirmchat(org.bukkit.entity.Player player, String title, String description, String confirmText, String cancelText, Runnable onConfirm, Runnable onCancel) Create a confirm dialog with chat.Get the cancel text.Get the confirm text.static Confirmgui(org.bukkit.entity.Player player, String title, String description, Runnable onConfirm, Runnable onCancel) Create a confirm dialog with GUI.static Confirmgui(org.bukkit.entity.Player player, String title, String description, String confirmText, String cancelText, Runnable onConfirm, Runnable onCancel) Create a confirm dialog with GUI.voidshow()Show the confirm dialog.
-
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
确认对话框
-