Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The @minecraft/server-ui
module contains types for expressing simple dialog-based user experiences.
@minecraft/server-ui.ActionFormData contain a list of buttons with captions and images that can be used for presenting a set of options to a player.
@minecraft/server-ui.MessageFormData are simple two-button message experiences that are functional for Yes/No or OK/Cancel questions.
@minecraft/server-ui.ModalFormData allow for a more flexible "questionnaire-style" list of controls that can be used to take input.
Changelog
Manifest Details
{
"module_name": "@minecraft/server-ui",
"version": "2.0.0"
}
This is version 2.x.x of this module, which is the latest as of version 1.21.100-beta.23 of Minecraft.
Available Versions
2.1.0-beta
2.0.0
Prior Versions
The following API versions are from a major version that is documented here: @minecraft/server-ui:
1.3.0
1.2.0
1.1.0
1.0.0
Enumerations
Classes
- ActionFormData
- ActionFormResponse
- FormResponse
- MessageFormData
- MessageFormResponse
- ModalFormData
- ModalFormResponse
- UIManager
Interfaces
- ModalFormDataDropdownOptions
- ModalFormDataSliderOptions
- ModalFormDataTextFieldOptions
- ModalFormDataToggleOptions
Errors
Objects
uiManager
static read-only uiManager: UIManager;
Type: UIManager