mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
fancydialogs: Rename Dialog to DialogType
This commit is contained in:
@@ -8,6 +8,6 @@ public record ConfirmationDialog(
|
||||
@NotNull DialogData common,
|
||||
@NotNull ClickAction yesButton,
|
||||
@NotNull ClickAction noButton
|
||||
) implements Dialog{
|
||||
) implements DialogType {
|
||||
|
||||
}
|
||||
|
||||
@@ -9,9 +9,9 @@ import java.util.List;
|
||||
|
||||
public record DialogListDialog(
|
||||
@NotNull DialogData common,
|
||||
@NotNull List<Dialog> dialogs,
|
||||
@NotNull List<DialogType> dialogs,
|
||||
@Nullable ClickEvent onCancel,
|
||||
int columns,
|
||||
int buttonWidth
|
||||
) implements Dialog {
|
||||
) implements DialogType {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.fancyinnovations.fancydialogs.api.data.types;
|
||||
|
||||
public interface Dialog {
|
||||
public interface DialogType {
|
||||
}
|
||||
@@ -5,7 +5,7 @@ import com.fancyinnovations.fancydialogs.api.data.input.DialogInput;
|
||||
import com.fancyinnovations.fancydialogs.api.data.submit.SubmitMethod;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public interface InputFormDialog extends Dialog {
|
||||
public interface InputFormDialog extends DialogType {
|
||||
|
||||
record Input(
|
||||
@NotNull String key,
|
||||
|
||||
@@ -13,6 +13,6 @@ public record MultiActionDialog(
|
||||
@NotNull List<ClickAction> actions,
|
||||
@Nullable ClickEvent onCancel,
|
||||
int columns
|
||||
) implements Dialog{
|
||||
) implements DialogType {
|
||||
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@ public record MultiActionInputFormDialog(
|
||||
@NotNull DialogData common,
|
||||
@NotNull List<InputFormDialog.Input> inputs,
|
||||
@NotNull List<InputFormDialog.SubmitAction> actions
|
||||
) implements Dialog{
|
||||
) implements DialogType {
|
||||
|
||||
}
|
||||
|
||||
@@ -7,5 +7,5 @@ import org.jetbrains.annotations.NotNull;
|
||||
public record NoticeDialog(
|
||||
@NotNull DialogData common,
|
||||
@NotNull ClickAction button
|
||||
) implements Dialog {
|
||||
) implements DialogType {
|
||||
}
|
||||
|
||||
@@ -10,5 +10,5 @@ public record ServerLinksDialog(
|
||||
@Nullable ClickEvent onCancel,
|
||||
int columns,
|
||||
int buttonWidth
|
||||
) implements Dialog {
|
||||
) implements DialogType {
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@ public record SimpleInputFormDialog(
|
||||
@NotNull DialogData common,
|
||||
@NotNull List<InputFormDialog.Input> inputs,
|
||||
@NotNull InputFormDialog.SubmitAction action
|
||||
) implements Dialog{
|
||||
) implements DialogType {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user