Class PENoticeDialog
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
Dialog.AfterAction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction(Consumer<PEDialogActionBuilder> action) Set the action of the notice dialogprotected com.github.retrooper.packetevents.protocol.dialog.DialogconstructDialog(com.github.retrooper.packetevents.protocol.dialog.CommonDialogData commonDialogData) Construct the PacketEvents dialog with the given common dialog dataMethods inherited from class io.github.projectunified.unidialog.packetevents.dialog.PEDialog
afterAction, body, canCloseWithEscape, externalTitle, getAction, getComponentDeserializer, getDialog, input, opener, pause, titleMethods 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.dialog.AdventureDialog
externalTitle, titleMethods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserializeMethods inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
afterAction, body, body, canCloseWithEscape, input, input, opener, pause
-
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 byDialogActionBuilder.dynamicCustom(String)componentDeserializer- a function to deserialize components from stringsplayerFunction- a function to get the player object for a player UUID
-
-
Method Details
-
action
Description copied from interface:NoticeDialogSet the action of the notice dialog- Specified by:
actionin interfaceNoticeDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,PEDialogBodyBuilder, PEDialogInputBuilder, PEDialog<?>, PEDialogActionBuilder, PENoticeDialog> - Parameters:
action- the action to be performed- Returns:
- the notice dialog itself for method chaining
-
constructDialog
protected com.github.retrooper.packetevents.protocol.dialog.Dialog constructDialog(com.github.retrooper.packetevents.protocol.dialog.CommonDialogData commonDialogData) Description copied from class:PEDialogConstruct the PacketEvents dialog with the given common dialog data- Specified by:
constructDialogin classPEDialog<PENoticeDialog>- Parameters:
commonDialogData- the common dialog data- Returns:
- the constructed dialog
-