Interface AdventureSingleOptionInput<T extends AdventureSingleOptionInput<T>>
- Type Parameters:
T- the type of the input, for method chaining
- All Superinterfaces:
AdventureSupport,SingleOptionInput<T>
- All Known Implementing Classes:
PaperSingleOptionInput,PESingleOptionInput
public interface AdventureSingleOptionInput<T extends AdventureSingleOptionInput<T>>
extends 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
Description copied from interface:SingleOptionInputSet the label for the input- Specified by:
labelin interfaceSingleOptionInput<T extends AdventureSingleOptionInput<T>>- 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
Description copied from interface:SingleOptionInputAdd an option to the input- Specified by:
optionin interfaceSingleOptionInput<T extends AdventureSingleOptionInput<T>>- 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
-