@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

      Closes the form. Will throw an error if the form is not open.

    • Beta

      Returns Promise<MessageBoxResult>

      Show this modal to the player. Will throw an error if the modal is already showing.

    • Beta

      Parameters

      • player: Player

      Returns MessageBox

      Creates a message form for a certain player. Use this instead of a constructor.