Interface AdventureSingleOptionInput<T extends AdventureSingleOptionInput<T>>
- Type Parameters:
T- the type of the input, for method chaining
- All Superinterfaces:
AdventureSupport,io.github.projectunified.unidialog.core.input.SingleOptionInput<T>
public interface AdventureSingleOptionInput<T extends AdventureSingleOptionInput<T>>
extends io.github.projectunified.unidialog.core.input.SingleOptionInput<T>, AdventureSupport
An extension of
SingleOptionInput that provides additional methods for handling Component labels and options.-
Field Summary
Fields inherited from interface io.github.projectunified.unidialog.core.input.SingleOptionInput
DEFAULT_WIDTH -
Method Summary
Methods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize, getComponentDeserializerMethods inherited from interface io.github.projectunified.unidialog.core.input.SingleOptionInput
option, width
-
Method Details
-
label
Set the label for the input- Parameters:
label- the label text- Returns:
- the current instance for method chaining
-
label
- Specified by:
labelin interfaceio.github.projectunified.unidialog.core.input.SingleOptionInput<T extends AdventureSingleOptionInput<T>>
-
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
- Specified by:
optionin interfaceio.github.projectunified.unidialog.core.input.SingleOptionInput<T extends AdventureSingleOptionInput<T>>
-
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
-