@minecraft/server-ui
    Preparing search index...

    Class MessageBoxBeta

    A simple message form UI, 2 buttons and a text body.

    Index

    Constructors

    Methods

    • Beta

      Returns void

      Tell the client to close the message box. Throws FormCloseError if the message box is not open.

    • Beta

      Returns boolean

      Returns true if the message box is currently being shown to the player.

    • Beta

      Returns Promise<MessageBoxResult>

      Show this message box to the player. Will return a result even if the client was busy (i.e. in another menu). Will throw if the user disconnects.