Class PETextInput
java.lang.Object
io.github.projectunified.unidialog.packetevents.input.PEDialogInput
io.github.projectunified.unidialog.packetevents.input.PETextInput
- All Implemented Interfaces:
AdventureTextInput<PETextInput>,AdventureSupport,TextInput<PETextInput>
-
Field Summary
Fields inherited from interface io.github.projectunified.unidialog.core.input.TextInput
DEFAULT_MAX_LENGTH, DEFAULT_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionPETextInput(Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
Method Summary
Modifier and TypeMethodDescriptioncom.github.retrooper.packetevents.protocol.dialog.input.InputControlgetInput()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.packetevents.input.PEDialogInput
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
-
PETextInput
-
-
Method Details
-
width
Description copied from interface:TextInputSet the width of the input- Specified by:
widthin interfaceTextInput<PETextInput>- Parameters:
width- the width- Returns:
- the current instance for method chaining
-
label
Description copied from interface:AdventureTextInputSet the label for the input- Specified by:
labelin interfaceAdventureTextInput<PETextInput>- Parameters:
label- the label text- Returns:
- the current instance for method chaining
-
initial
Description copied from interface:TextInputSet the initial value for the input- Specified by:
initialin interfaceTextInput<PETextInput>- 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<PETextInput>- 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<PETextInput>- 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<PETextInput>- Parameters:
height- the height- Returns:
- the current instance for method chaining
-
getInput
public com.github.retrooper.packetevents.protocol.dialog.input.InputControl getInput()- Specified by:
getInputin classPEDialogInput
-