Interface SingleOptionInput<T extends SingleOptionInput<T>>
- Type Parameters:
T
- the type of the implementing class, for method chaining
- All Known Subinterfaces:
AdventureSingleOptionInput<T>
- All Known Implementing Classes:
PaperSingleOptionInput
,PESingleOptionInput
,SpigotSingleOptionInput
public interface SingleOptionInput<T extends SingleOptionInput<T>>
Interface for single option input types in a dialog.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
DEFAULT_WIDTH
static final int DEFAULT_WIDTH- 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
-
option
Add an option to the input- Parameters:
id
- the identifier for the optiondisplay
- the display text for the optionisDefault
- whether this option is the default selection- Returns:
- the current instance for method chaining
-
option
Add an option to the input- Parameters:
id
- the identifier for the optiondisplay
- the display text for the option- Returns:
- the current instance for method chaining
-