Class DialogManager
java.lang.Object
org.geysermc.geyser.session.dialog.DialogManager
Small class to manage the currently open dialog.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the currently open dialog, if any.open()voidopenDialog(net.kyori.adventure.key.Key dialog) voidopenDialog(Dialog dialog) Opens a new dialog.voidopenDialog(org.geysermc.mcprotocollib.protocol.data.game.Holder<org.cloudburstmc.nbt.NbtMap> dialog) voidtick()
-
Constructor Details
-
DialogManager
-
-
Method Details
-
openDialog
public void openDialog(net.kyori.adventure.key.Key dialog) -
openDialog
public void openDialog(org.geysermc.mcprotocollib.protocol.data.game.Holder<org.cloudburstmc.nbt.NbtMap> dialog) -
openDialog
Opens a new dialog. If a dialog was already open, this one will be closed. Its closing action will not be executed. This matches Java behaviour. -
tick
public void tick() -
close
public void close()Closes the currently open dialog, if any. The dialog's closing action will not be executed. -
open
-