Class PaperSingleOptionInput
java.lang.Object
io.github.projectunified.unidialog.paper.input.PaperDialogInput
io.github.projectunified.unidialog.paper.input.PaperSingleOptionInput
- All Implemented Interfaces:
io.github.projectunified.unidialog.adventure.input.AdventureSingleOptionInput<PaperSingleOptionInput>,io.github.projectunified.unidialog.adventure.support.AdventureSupport,io.github.projectunified.unidialog.core.input.SingleOptionInput<PaperSingleOptionInput>
public class PaperSingleOptionInput
extends PaperDialogInput
implements io.github.projectunified.unidialog.adventure.input.AdventureSingleOptionInput<PaperSingleOptionInput>
-
Field Summary
Fields inherited from class io.github.projectunified.unidialog.paper.input.PaperDialogInput
keyFields inherited from interface io.github.projectunified.unidialog.core.input.SingleOptionInput
DEFAULT_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionPaperSingleOptionInput(String key, Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
Method Summary
Methods inherited from class io.github.projectunified.unidialog.paper.input.PaperDialogInput
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
-
PaperSingleOptionInput
-
-
Method Details
-
label
- Specified by:
labelin interfaceio.github.projectunified.unidialog.adventure.input.AdventureSingleOptionInput<PaperSingleOptionInput>
-
option
public PaperSingleOptionInput option(String id, net.kyori.adventure.text.Component display, boolean isDefault) - Specified by:
optionin interfaceio.github.projectunified.unidialog.adventure.input.AdventureSingleOptionInput<PaperSingleOptionInput>
-
width
- Specified by:
widthin interfaceio.github.projectunified.unidialog.core.input.SingleOptionInput<PaperSingleOptionInput>
-
getDialogInput
public io.papermc.paper.registry.data.dialog.input.DialogInput getDialogInput()- Specified by:
getDialogInputin classPaperDialogInput
-