Class PEDialogInput
java.lang.Object
io.github.projectunified.unidialog.packetevents.input.PEDialogInput
- All Implemented Interfaces:
AdventureSupport
- Direct Known Subclasses:
PEBooleanInput,PEDialogInputBuilder,PENumberRangeInput,PESingleOptionInput,PETextInput
A PacketEvents-based base class for dialog inputs.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPEDialogInput(Function<String, net.kyori.adventure.text.Component> componentDeserializer) Constructor for PEDialogInput -
Method Summary
Modifier and TypeMethodDescriptionGet the deserializer function that converts a string to aComponentabstract com.github.retrooper.packetevents.protocol.dialog.input.InputControlgetInput()Get the PacketEvents input control for this 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
-
Constructor Details
-
PEDialogInput
Constructor for PEDialogInput- Parameters:
componentDeserializer- a function to deserialize components from strings
-
-
Method Details
-
getInput
public abstract com.github.retrooper.packetevents.protocol.dialog.input.InputControl getInput()Get the PacketEvents input control for this input- Returns:
- the input control
-
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
-