Script API - v1.21.70
    Preparing search index...
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      Returns void

      This function can't be called in read-only mode.

      This function can throw errors.

      import { Player } from "@minecraft/server";
      import { uiManager } from "@minecraft/server-ui";

      /**
      * which closes all modal/message/action forms from a player
      * @param player Player to close the form to
      */
      function closeForm(player: Player) {
      uiManager.closeAllForms(player);
      }