java.lang.Object
io.github.projectunified.unidialog.packetevents.input.PEDialogInput
All Implemented Interfaces:
AdventureSupport
Direct Known Subclasses:
PEBooleanInput, PEDialogInputBuilder, PENumberRangeInput, PESingleOptionInput, PETextInput

public abstract class PEDialogInput extends Object implements AdventureSupport
A PacketEvents-based base class for dialog inputs.
  • Constructor Details

    • PEDialogInput

      protected PEDialogInput(Function<String,net.kyori.adventure.text.Component> componentDeserializer)
      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

      public Function<String,net.kyori.adventure.text.Component> getComponentDeserializer()
      Description copied from interface: AdventureSupport
      Get the deserializer function that converts a string to a Component
      Specified by:
      getComponentDeserializer in interface AdventureSupport
      Returns:
      the function that deserializes a string into a Component