Interface TextInput<T extends TextInput<T>>
- Type Parameters:
T- the type of the implementing class, for method chaining
- All Known Subinterfaces:
AdventureTextInput<T>
- All Known Implementing Classes:
BungeeTextInput,PaperTextInput,PETextInput
public interface TextInput<T extends TextInput<T>>
Interface for text input types in a dialog.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Method Summary
-
Field Details
-
DEFAULT_WIDTH
static final int DEFAULT_WIDTH- See Also:
-
DEFAULT_MAX_LENGTH
static final int DEFAULT_MAX_LENGTH- See Also:
-
-
Method Details
-
width
Set the width of the input- 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
-
initial
Set the initial value for the input- Parameters:
initial- the initial text- Returns:
- the current instance for method chaining
-
maxLength
Set the maximum length of the input text- Parameters:
maxLength- the maximum number of characters allowed- Returns:
- the current instance for method chaining
-
maxLines
Set the maximum number of lines for the input- Parameters:
maxLines- the maximum number of lines allowed- Returns:
- the current instance for method chaining
-
height
Set the height of the input- Parameters:
height- the height- Returns:
- the current instance for method chaining
-