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
keyFields 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.DialogInputSet 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
getComponentDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize, getComponentDeserializerMethods inherited from interface io.github.projectunified.unidialog.adventure.input.AdventureTextInput
label
-
Constructor Details
-
PaperTextInput
-
-
Method Details
-
label
Description copied from interface:AdventureTextInputSet the label for the input- Specified by:
labelin interfaceAdventureTextInput<PaperTextInput>- Parameters:
label- the label text- Returns:
- the current instance for method chaining
-
width
Description copied from interface:TextInputSet the width of the input- Specified by:
widthin interfaceTextInput<PaperTextInput>- Parameters:
width- the width- Returns:
- the current instance for method chaining
-
initial
Description copied from interface:TextInputSet the initial value for the input- Specified by:
initialin interfaceTextInput<PaperTextInput>- Parameters:
initial- the initial text- Returns:
- the current instance for method chaining
-
maxLength
Description copied from interface:TextInputSet the maximum length of the input text- Specified by:
maxLengthin interfaceTextInput<PaperTextInput>- Parameters:
maxLength- the maximum number of characters allowed- Returns:
- the current instance for method chaining
-
maxLines
Description copied from interface:TextInputSet the maximum number of lines for the input- Specified by:
maxLinesin interfaceTextInput<PaperTextInput>- Parameters:
maxLines- the maximum number of lines allowed- Returns:
- the current instance for method chaining
-
height
Description copied from interface:TextInputSet the height of the input- Specified by:
heightin 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:
getDialogInputin classPaperDialogInput
-