Class SpigotTextInput
java.lang.Object
io.github.projectunified.unidialog.spigot.input.SpigotDialogInput
io.github.projectunified.unidialog.spigot.input.SpigotTextInput
- All Implemented Interfaces:
TextInput<SpigotTextInput>
-
Field Summary
Fields inherited from class io.github.projectunified.unidialog.spigot.input.SpigotDialogInput
key
Fields inherited from interface io.github.projectunified.unidialog.core.input.TextInput
DEFAULT_MAX_LENGTH, DEFAULT_WIDTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.md_5.bungee.api.dialog.input.DialogInput
Set the height of the inputSet the initial value for the inputSet the label for the inputlabel
(@Nullable net.md_5.bungee.api.chat.BaseComponent label) Set the label for the inputmaxLength
(int maxLength) Set the maximum length of the input textSet the maximum number of lines for the inputwidth
(int width) Set the width of the input
-
Constructor Details
-
SpigotTextInput
-
-
Method Details
-
width
Description copied from interface:TextInput
Set the width of the input- Specified by:
width
in interfaceTextInput<SpigotTextInput>
- Parameters:
width
- the width- Returns:
- the current instance for method chaining
-
label
Set the label for the input- Parameters:
label
- the label text- Returns:
- the current instance for method chaining
-
label
Description copied from interface:TextInput
Set the label for the input- Specified by:
label
in interfaceTextInput<SpigotTextInput>
- Parameters:
label
- the label text- Returns:
- the current instance for method chaining
-
initial
Description copied from interface:TextInput
Set the initial value for the input- Specified by:
initial
in interfaceTextInput<SpigotTextInput>
- Parameters:
initial
- the initial text- Returns:
- the current instance for method chaining
-
maxLength
Description copied from interface:TextInput
Set the maximum length of the input text- Specified by:
maxLength
in interfaceTextInput<SpigotTextInput>
- Parameters:
maxLength
- the maximum number of characters allowed- Returns:
- the current instance for method chaining
-
maxLines
Description copied from interface:TextInput
Set the maximum number of lines for the input- Specified by:
maxLines
in interfaceTextInput<SpigotTextInput>
- Parameters:
maxLines
- the maximum number of lines allowed- Returns:
- the current instance for method chaining
-
height
Description copied from interface:TextInput
Set the height of the input- Specified by:
height
in interfaceTextInput<SpigotTextInput>
- Parameters:
height
- the height- Returns:
- the current instance for method chaining
-
getDialogInput
public net.md_5.bungee.api.dialog.input.DialogInput getDialogInput()- Specified by:
getDialogInput
in classSpigotDialogInput
-