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.- Parameters:
player- Playertitle- Titledescription- DescriptiononConfirm- On confirmonCancel- 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.- Parameters:
player- Playertitle- Titledescription- DescriptionconfirmText- Confirm textcancelText- Cancel textonConfirm- On confirmonCancel- 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- Playertitle- Titledescription- DescriptiononConfirm- On confirmonCancel- 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- Playertitle- Titledescription- DescriptionconfirmText- Confirm textcancelText- Cancel textonConfirm- On confirmonCancel- On cancel- Returns:
- Confirm
-