Class CommonDialogData

java.lang.Object
com.github.retrooper.packetevents.protocol.dialog.CommonDialogData

@NullMarked public final class CommonDialogData extends Object
  • Constructor Details

    • CommonDialogData

      public CommonDialogData(net.kyori.adventure.text.Component title, @Nullable net.kyori.adventure.text.Component externalTitle, boolean canCloseWithEscape, boolean pause, DialogAction afterAction, List<DialogBody> body, List<Input> inputs)
  • Method Details

    • decode

      public static CommonDialogData decode(NBTCompound compound, PacketWrapper<?> wrapper)
    • encode

      public static void encode(NBTCompound compound, PacketWrapper<?> wrapper, CommonDialogData data)
    • getTitle

      public net.kyori.adventure.text.Component getTitle()
    • getExternalTitle

      public @Nullable net.kyori.adventure.text.Component getExternalTitle()
    • isCanCloseWithEscape

      public boolean isCanCloseWithEscape()
    • isPause

      public boolean isPause()
    • getAfterAction

      public DialogAction getAfterAction()
    • getBody

      public List<DialogBody> getBody()
    • getInputs

      public List<Input> getInputs()