Interface SingleOptionDialogInput
- All Superinterfaces:
DialogInput
A single option dialog input.
Created via DialogInput.singleOption(String, int, List, Component, boolean)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A builder for creating aSingleOptionDialogInput
.static interface
Represents a single option entry in a single option dialog input. -
Method Summary
Modifier and TypeMethodDescription@Unmodifiable List
<SingleOptionDialogInput.OptionEntry> entries()
The list of options for the input.label()
The label for the input.boolean
Whether the label should be visible.@org.jetbrains.annotations.Range(from=1L, to=1024L) int
width()
The width of the input.Methods inherited from interface io.papermc.paper.registry.data.dialog.input.DialogInput
key
-
Method Details
-
width
@Contract(pure=true) @org.jetbrains.annotations.Range(from=1L, to=1024L) int width()The width of the input.- Returns:
- the width
-
entries
The list of options for the input.- Returns:
- the list of option entries
-
label
The label for the input.- Returns:
- the label component
-
labelVisible
@Contract(pure=true) boolean labelVisible()Whether the label should be visible.- Returns:
- true if the label is visible, false otherwise
-