Class BungeeSingleOptionInput
java.lang.Object
io.github.projectunified.unidialog.bungeecord.input.BungeeDialogInput
io.github.projectunified.unidialog.bungeecord.input.BungeeSingleOptionInput
- All Implemented Interfaces:
SingleOptionInput<BungeeSingleOptionInput>
public class BungeeSingleOptionInput
extends BungeeDialogInput
implements SingleOptionInput<BungeeSingleOptionInput>
-
Field Summary
Fields inherited from class io.github.projectunified.unidialog.bungeecord.input.BungeeDialogInput
keyFields inherited from interface io.github.projectunified.unidialog.core.input.SingleOptionInput
DEFAULT_WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.md_5.bungee.api.dialog.input.DialogInputSet the label for the inputlabel(@Nullable net.md_5.bungee.api.chat.BaseComponent label) Set the label for the inputAdd an option to the inputAdd an option to the inputAdd an option to the inputwidth(int width) Set the width of the inputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.projectunified.unidialog.core.input.SingleOptionInput
option
-
Constructor Details
-
BungeeSingleOptionInput
-
-
Method Details
-
width
Description copied from interface:SingleOptionInputSet the width of the input- Specified by:
widthin interfaceSingleOptionInput<BungeeSingleOptionInput>- Parameters:
width- the width- Returns:
- the current instance for method chaining
-
label
public BungeeSingleOptionInput label(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent 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<BungeeSingleOptionInput>- Parameters:
label- the label text- Returns:
- the current instance for method chaining
-
option
public BungeeSingleOptionInput option(String id, net.md_5.bungee.api.chat.BaseComponent display, boolean isDefault) 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
-
option
Description copied from interface:SingleOptionInputAdd an option to the input- Specified by:
optionin interfaceSingleOptionInput<BungeeSingleOptionInput>- 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
-
getDialogInput
public net.md_5.bungee.api.dialog.input.DialogInput getDialogInput()- Specified by:
getDialogInputin classBungeeDialogInput
-