The player to show this form to.
The title text to display at the top of the form.
可选options: CustomFormOptions世界修改
The text label to display on the button.
A callback function that is invoked when the player clicks the button.
可选options: ButtonOptions
Optional configuration for the button, such as a tooltip, disabled state, or visibility.
世界修改
世界修改
可选options: DividerOptions
Optional configuration for the divider, such as visibility.
世界修改
The text label displayed around the dropdown.
An ObservableNumber that holds the index of the currently selected item.
The list of items to display in the dropdown.
可选options: DropdownOptions
Optional configuration for the dropdown, such as a description, disabled state, or visibility.
世界修改
The header text to display.
可选options: TextOptions
Optional configuration for the header, such as visibility.
世界修改
The image source path to display. Must be a relative path to an image file within the provided pack.
The resource pack identifier that contains the provided image source.
可选options: ImageOptions
Optional configuration for the image, such as visibility or width.
The form instance to allow method chaining.
世界修改
The text to display in the label.
可选options: TextOptions
Optional configuration for the label, such as visibility.
实验性 世界修改
The buttons to display in the row. Maximum Length: 3
可选options: MultiButtonRowOptions
Optional configuration for the row, such as visibility.
世界修改
世界修改
The text label displayed around the slider.
An ObservableNumber that holds the current value of the slider.
The minimum value of the slider range.
The maximum value of the slider range.
可选options: SliderOptions
Optional configuration for the slider, such as step size, a description, disabled state, or visibility.
世界修改
可选options: SpacingOptions
Optional configuration for the spacer, such as visibility.
世界修改
The text label displayed around the text field.
An ObservableString that holds the current text value of the input field.
可选options: TextFieldOptions
Optional configuration for the text field, such as a description, disabled state, or visibility.
世界修改
The text label displayed next to the toggle.
An ObservableBoolean that holds the current on/off state of the toggle.
可选options: ToggleOptions
Optional configuration for the toggle, such as a description, disabled state, or visibility.
A customizable data driven (DDUI) form that lets you add buttons, labels, toggles, dropdowns, sliders, text fields, and more. The form layout is built by calling methods to add components before calling show(). Any Observable values bound to form components will automatically update the UI when their values change.