Class DialogManager

java.lang.Object
org.geysermc.geyser.session.dialog.DialogManager

public class DialogManager extends Object
Small class to manage the currently open dialog.
  • Constructor Details

  • 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

      public void openDialog(Dialog dialog)
      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

      public DialogHolder open()