Interface TextDialogInput
- All Superinterfaces:
DialogInput
A text dialog input.
Created via DialogInput.text(String, int, Component, boolean, String, int, MultilineOptions)
- Since:
- 1.21.7
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for a text dialog input.static interfaceRepresents the multiline options for a text dialog input. -
Method Summary
Modifier and TypeMethodDescriptioninitial()The initial value of the input.net.kyori.adventure.text.Componentlabel()The label for the input.booleanWhether the label should be visible.@Positive intThe format for the label (a translation key or format string).@Nullable TextDialogInput.MultilineOptionsThe multiline options for the input, or null if not set.@Range(from=1L,to=1024L) intwidth()The width of the input.Methods inherited from interface DialogInput
key
-
Method Details
-
width
@Contract(pure=true) @Range(from=1L,to=1024L) int width()The width of the input.- Returns:
- the width of the input
- Since:
- 1.21.7
-
label
@Contract(pure=true) net.kyori.adventure.text.Component label()The label for the input.- Returns:
- the label component
- Since:
- 1.21.7
-
labelVisible
@Contract(pure=true) boolean labelVisible()Whether the label should be visible.- Returns:
- true if the label is visible, false otherwise
- Since:
- 1.21.7
-
initial
The initial value of the input.- Returns:
- the initial text
- Since:
- 1.21.7
-
maxLength
@Contract(pure=true) @Positive int maxLength()The format for the label (a translation key or format string).- Returns:
- the label format
- Since:
- 1.21.7
-
multiline
The multiline options for the input, or null if not set.- Returns:
- the multiline options
- Since:
- 1.21.7
-