Class BungeeSingleOptionInput
java.lang.Object
io.github.projectunified.unidialog.bungeecord.input.BungeeDialogInput
io.github.projectunified.unidialog.bungeecord.input.BungeeSingleOptionInput
- All Implemented Interfaces:
io.github.projectunified.unidialog.core.input.SingleOptionInput<BungeeSingleOptionInput>
public class BungeeSingleOptionInput
extends BungeeDialogInput
implements io.github.projectunified.unidialog.core.input.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
Methods 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
- Specified by:
widthin interfaceio.github.projectunified.unidialog.core.input.SingleOptionInput<BungeeSingleOptionInput>
-
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
- Specified by:
labelin interfaceio.github.projectunified.unidialog.core.input.SingleOptionInput<BungeeSingleOptionInput>
-
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
- Specified by:
optionin interfaceio.github.projectunified.unidialog.core.input.SingleOptionInput<BungeeSingleOptionInput>
-
getDialogInput
public net.md_5.bungee.api.dialog.input.DialogInput getDialogInput()- Specified by:
getDialogInputin classBungeeDialogInput
-