Class PEDialogOpener
java.lang.Object
io.github.projectunified.unidialog.packetevents.opener.PEDialogOpener
- All Implemented Interfaces:
DialogOpener
-
Constructor Summary
ConstructorsConstructorDescriptionPEDialogOpener
(com.github.retrooper.packetevents.protocol.dialog.Dialog dialog, Function<UUID, @Nullable Object> playerFunction) -
Method Summary
Modifier and TypeMethodDescriptioncom.github.retrooper.packetevents.protocol.dialog.Dialog
dialog()
Get the dialog associated with this openervoid
open
(com.github.retrooper.packetevents.protocol.player.User user) Open the dialog for a user, automatically determining if it is a configuration dialog based on the user's connection state.void
open
(com.github.retrooper.packetevents.protocol.player.User user, boolean configuration) Open the dialog for a user, optionally specifying if it is a configuration dialog.boolean
Open the dialog for the given player UUID
-
Constructor Details
-
PEDialogOpener
-
-
Method Details
-
dialog
public com.github.retrooper.packetevents.protocol.dialog.Dialog dialog()Get the dialog associated with this opener- Returns:
- the dialog
-
open
public void open(com.github.retrooper.packetevents.protocol.player.User user, boolean configuration) Open the dialog for a user, optionally specifying if it is a configuration dialog.- Parameters:
user
- the user to open the dialog forconfiguration
- if true, opens as a configuration dialog; if false, opens as a play dialog
-
open
public void open(com.github.retrooper.packetevents.protocol.player.User user) Open the dialog for a user, automatically determining if it is a configuration dialog based on the user's connection state.- Parameters:
user
- the user to open the dialog for
-
open
Description copied from interface:DialogOpener
Open the dialog for the given player UUID- Specified by:
open
in interfaceDialogOpener
- Parameters:
uuid
- the UUID of the player to open the dialog for- Returns:
- true if the dialog was opened successfully, false otherwise
-