Class PaperDialogInputBuilder
java.lang.Object
io.github.projectunified.unidialog.paper.input.PaperDialogInput
io.github.projectunified.unidialog.paper.input.PaperDialogInputBuilder
- All Implemented Interfaces:
AdventureSupport
,DialogInputBuilder
-
Field Summary
Fields inherited from class io.github.projectunified.unidialog.paper.input.PaperDialogInput
key
-
Constructor Summary
ConstructorsConstructorDescriptionPaperDialogInputBuilder
(String key, Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
Method Summary
Modifier and TypeMethodDescriptionCreate a boolean inputio.papermc.paper.registry.data.dialog.input.DialogInput
Create a number range inputCreate a single option inputCreate a text inputMethods inherited from class io.github.projectunified.unidialog.paper.input.PaperDialogInput
getComponentDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize
-
Constructor Details
-
PaperDialogInputBuilder
-
-
Method Details
-
booleanInput
Description copied from interface:DialogInputBuilder
Create a boolean input- Specified by:
booleanInput
in interfaceDialogInputBuilder
- Returns:
- a new instance of a boolean input
-
textInput
Description copied from interface:DialogInputBuilder
Create a text input- Specified by:
textInput
in interfaceDialogInputBuilder
- Returns:
- a new instance of a text input
-
singleOptionInput
Description copied from interface:DialogInputBuilder
Create a single option input- Specified by:
singleOptionInput
in interfaceDialogInputBuilder
- Returns:
- a new instance of a single option input
-
numberRangeInput
Description copied from interface:DialogInputBuilder
Create a number range input- Specified by:
numberRangeInput
in interfaceDialogInputBuilder
- Returns:
- a new instance of a number range input
-
getDialogInput
public io.papermc.paper.registry.data.dialog.input.DialogInput getDialogInput()- Specified by:
getDialogInput
in classPaperDialogInput
-