Class PaperDialogInput
java.lang.Object
io.github.projectunified.unidialog.paper.input.PaperDialogInput
- All Implemented Interfaces:
AdventureSupport
- Direct Known Subclasses:
PaperBooleanInput
,PaperDialogInputBuilder
,PaperNumberRangeInput
,PaperSingleOptionInput
,PaperTextInput
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PaperDialogInput
(String key, Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
Method Summary
Modifier and TypeMethodDescriptionGet the deserializer function that converts a string to aComponent
abstract io.papermc.paper.registry.data.dialog.input.DialogInput
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
-
Field Details
-
key
-
-
Constructor Details
-
PaperDialogInput
-
-
Method Details
-
getDialogInput
public abstract io.papermc.paper.registry.data.dialog.input.DialogInput getDialogInput() -
getComponentDeserializer
Description copied from interface:AdventureSupport
Get the deserializer function that converts a string to aComponent
- Specified by:
getComponentDeserializer
in interfaceAdventureSupport
- Returns:
- the function that deserializes a string into a Component
-