Class PESingleOptionInput
java.lang.Object
io.github.projectunified.unidialog.packetevents.input.PEDialogInput
io.github.projectunified.unidialog.packetevents.input.PESingleOptionInput
- All Implemented Interfaces:
AdventureSingleOptionInput<PESingleOptionInput>,AdventureSupport,SingleOptionInput<PESingleOptionInput>
public class PESingleOptionInput
extends PEDialogInput
implements AdventureSingleOptionInput<PESingleOptionInput>
-
Field Summary
Fields inherited from interface io.github.projectunified.unidialog.core.input.SingleOptionInput
DEFAULT_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionPESingleOptionInput(Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
Method Summary
Methods inherited from class io.github.projectunified.unidialog.packetevents.input.PEDialogInput
getComponentDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.projectunified.unidialog.adventure.input.AdventureSingleOptionInput
label, option, optionMethods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize, getComponentDeserializerMethods inherited from interface io.github.projectunified.unidialog.core.input.SingleOptionInput
option
-
Constructor Details
-
PESingleOptionInput
-
-
Method Details
-
width
Description copied from interface:SingleOptionInputSet the width of the input- Specified by:
widthin interfaceSingleOptionInput<PESingleOptionInput>- Parameters:
width- the width- Returns:
- the current instance for method chaining
-
label
Description copied from interface:AdventureSingleOptionInputSet the label for the input- Specified by:
labelin interfaceAdventureSingleOptionInput<PESingleOptionInput>- Parameters:
label- the label text- Returns:
- the current instance for method chaining
-
option
public PESingleOptionInput option(String id, net.kyori.adventure.text.Component display, boolean isDefault) Description copied from interface:AdventureSingleOptionInputAdd an option to the input- Specified by:
optionin interfaceAdventureSingleOptionInput<PESingleOptionInput>- 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
-
getInput
public com.github.retrooper.packetevents.protocol.dialog.input.InputControl getInput()- Specified by:
getInputin classPEDialogInput
-