Class PaperTextInput
java.lang.Object
io.github.projectunified.unidialog.paper.input.PaperDialogInput
io.github.projectunified.unidialog.paper.input.PaperTextInput
- All Implemented Interfaces:
AdventureTextInput<PaperTextInput>
,AdventureSupport
,TextInput<PaperTextInput>
-
Field Summary
Fields inherited from class io.github.projectunified.unidialog.paper.input.PaperDialogInput
key
Fields inherited from interface io.github.projectunified.unidialog.core.input.TextInput
DEFAULT_MAX_LENGTH, DEFAULT_WIDTH
-
Constructor Summary
ConstructorsConstructorDescriptionPaperTextInput
(String key, Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
Method Summary
Modifier and TypeMethodDescriptionio.papermc.paper.registry.data.dialog.input.DialogInput
Set the height of the inputSet the initial value for the inputlabel
(@Nullable net.kyori.adventure.text.Component 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 inputMethods inherited from class io.github.projectunified.unidialog.paper.input.PaperDialogInput
getComponentDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize, getComponentDeserializer
Methods inherited from interface io.github.projectunified.unidialog.adventure.input.AdventureTextInput
label
-
Constructor Details
-
PaperTextInput
-
-
Method Details
-
label
Description copied from interface:AdventureTextInput
Set the label for the input- Specified by:
label
in interfaceAdventureTextInput<PaperTextInput>
- Parameters:
label
- the label text- Returns:
- the current instance for method chaining
-
width
Description copied from interface:TextInput
Set the width of the input- Specified by:
width
in interfaceTextInput<PaperTextInput>
- Parameters:
width
- the width- 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<PaperTextInput>
- 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<PaperTextInput>
- 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<PaperTextInput>
- 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<PaperTextInput>
- Parameters:
height
- the height- Returns:
- the current instance for method chaining
-
getDialogInput
public io.papermc.paper.registry.data.dialog.input.DialogInput getDialogInput()- Specified by:
getDialogInput
in classPaperDialogInput
-