Class PaperSingleOptionInput

java.lang.Object
io.github.projectunified.unidialog.paper.input.PaperDialogInput
io.github.projectunified.unidialog.paper.input.PaperSingleOptionInput
All Implemented Interfaces:
io.github.projectunified.unidialog.adventure.input.AdventureSingleOptionInput<PaperSingleOptionInput>, io.github.projectunified.unidialog.adventure.support.AdventureSupport, io.github.projectunified.unidialog.core.input.SingleOptionInput<PaperSingleOptionInput>

public class PaperSingleOptionInput extends PaperDialogInput implements io.github.projectunified.unidialog.adventure.input.AdventureSingleOptionInput<PaperSingleOptionInput>
  • Field Summary

    Fields inherited from class io.github.projectunified.unidialog.paper.input.PaperDialogInput

    key

    Fields inherited from interface io.github.projectunified.unidialog.core.input.SingleOptionInput

    DEFAULT_WIDTH
  • Constructor Summary

    Constructors
    Constructor
    Description
    PaperSingleOptionInput(String key, Function<String,net.kyori.adventure.text.Component> componentDeserializer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.papermc.paper.registry.data.dialog.input.DialogInput
     
    label(@Nullable net.kyori.adventure.text.Component label)
     
    option(String id, net.kyori.adventure.text.Component display, boolean isDefault)
     
    width(int width)
     

    Methods 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.input.AdventureSingleOptionInput

    label, option, option

    Methods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport

    deserialize, getComponentDeserializer

    Methods inherited from interface io.github.projectunified.unidialog.core.input.SingleOptionInput

    option
  • Constructor Details

    • PaperSingleOptionInput

      public PaperSingleOptionInput(String key, Function<String,net.kyori.adventure.text.Component> componentDeserializer)
  • Method Details