java.lang.Object
io.github.projectunified.unidialog.packetevents.dialog.PEDialog<PENoticeDialog>
io.github.projectunified.unidialog.packetevents.dialog.PENoticeDialog
All Implemented Interfaces:
AdventureDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,PEDialogBodyBuilder,PEDialogInputBuilder,PENoticeDialog>, AdventureSupport, Dialog<com.github.retrooper.packetevents.protocol.item.ItemStack,PEDialogBodyBuilder,PEDialogInputBuilder,PENoticeDialog>, NoticeDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,PEDialogBodyBuilder,PEDialogInputBuilder,PEDialog<?>,PEDialogActionBuilder,PENoticeDialog>

public class PENoticeDialog extends PEDialog<PENoticeDialog> implements NoticeDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,PEDialogBodyBuilder,PEDialogInputBuilder,PEDialog<?>,PEDialogActionBuilder,PENoticeDialog>
A PacketEvents-based implementation of NoticeDialog for building notice dialogs.
  • Constructor Details

    • PENoticeDialog

      public PENoticeDialog(String defaultNamespace, Function<String,net.kyori.adventure.text.Component> componentDeserializer, Function<UUID,@Nullable Object> playerFunction)
      Constructor for PENoticeDialog
      Parameters:
      defaultNamespace - the default namespace, used by DialogActionBuilder.dynamicCustom(String)
      componentDeserializer - a function to deserialize components from strings
      playerFunction - a function to get the player object for a player UUID
  • Method Details