@minecraft/server-ui as Basalt provides it: Mojang's form builders (2.x, with the 1.x positional defaults still taken), plus Basalt's data-driven CustomForm and server settings.
@minecraft/server-ui as Basalt provides it: Mojang’s form builders (2.x, with the 1.x
positional defaults still taken), plus Basalt’s data-driven CustomForm and server settings.
import { uiManager } from '@minecraft/server-ui';Classes
Section titled “Classes”
ActionFormData ClassA list of buttons.
ActionFormResponse Class
CustomForm ClassThe 1.26 client's data-driven RejectError ClassA Response Class
MessageFormData ClassA question with two buttons.
MessageFormResponse Class
ModalFormData ClassA form of inputs.
ModalFormResponse Class
ScreenResponse ClassWhat a
minecraft:custom_form screen, as PowerNukkitX builds it.
Formshow() promise rejects with this when the answer couldn't be read.
FormCustomForm held when it closed.
UIManagerClass
Options
Section titled “Options”
CustomFormButtonOptions Interface
CustomFormFieldOptions Interface
CustomFormSliderOptions Interface
ModalFormDataDropdownOptions Interface
ModalFormDataSliderOptions Interface
ModalFormDataTextFieldOptions Interface
ModalFormDataToggleOptions Interface
Constants
Section titled “Constants”uiManager
Section titled “uiManager”const uiManager: UIManager;Types