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