Interface TextDialogInput
- All Superinterfaces:
DialogInput
A text dialog input.
Created via DialogInput.text(String, int, Component, boolean, String, int, MultilineOptions)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A builder for a text dialog input.static interface
Represents the multiline options for a text dialog input. -
Method Summary
Modifier and TypeMethodDescriptioninitial()
The initial value of the input.label()
The label for the input.boolean
Whether the label should be visible.@org.jetbrains.annotations.Range(from=1L, to=2147483647L) int
The format for the label (a translation key or format string).The multiline options for the input, or null if not set.@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
The width of the input.- Returns:
- the width of the input
-
label
The label for the input.- Returns:
- the label component
-
labelVisible
Whether the label should be visible.- Returns:
- true if the label is visible, false otherwise
-
initial
The initial value of the input.- Returns:
- the initial text
-
maxLength
The format for the label (a translation key or format string).- Returns:
- the label format
-
multiline
The multiline options for the input, or null if not set.- Returns:
- the multiline options
-